mirror of
https://github.com/X11Libre/xf86-video-v4l.git
synced 2026-03-24 01:25:19 +00:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user