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:
Adam Jackson
2018-08-14 14:42:08 -04:00
parent 0cbeee8e03
commit b45bef53fc

View File

@@ -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);