diff options
author | Adam Jackson <ajax@redhat.com> | 2018-08-14 14:42:08 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-08-14 14:43:26 -0400 |
commit | b45bef53fc86335e9bbabfbafd2fe55a5890668d (patch) | |
tree | 00ccc00b3a9e94989bab5af2f9403c85cd629746 /src/v4l.c | |
parent | 0cbeee8e03e832f145e3d0e94abe6024e7f1de05 (diff) |
Remove a bogus memset
We get this warning:
v4l.c:1154:39: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to remove the addressof? [-Wsizeof-pointer-memaccess]
It's correct enough, but ->cap is already zeroed by the previous memset.
Just remove the bogus one.
Fixes: xorg/driver/xf86-video-v4l#1
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/v4l.c')
-rw-r--r-- | src/v4l.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1137,7 +1137,6 @@ V4LInit(ScrnInfoPtr pScrn, XF86VideoAdaptorPtr **adaptors) pPPriv->nr = d; /* check device capabilities */ - memset(&pPPriv->cap, 0, sizeof(&pPPriv->cap)); if (-1 == ioctl(fd, VIDIOC_QUERYCAP, &pPPriv->cap) || 0 == (pPPriv->cap.capabilities & V4L2_CAP_VIDEO_OVERLAY)) { xf86Msg(X_ERROR, "v4l: %s: no overlay support\n",dev); |