diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-21 10:19:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-21 10:21:17 -0400 |
commit | 746cb2c31f7d88bac5453e3af45d95670a00ffe8 (patch) | |
tree | fa24cde434d8537e52e8cefd181c8c451cbb4d86 | |
parent | 7cb59509a74da98721ac169431a9a0bd372e29b0 (diff) |
[media] pvrusb2: Remove unused variable
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c: In function 'pvr2_v4l2_dev_init':
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c:1268:21: warning: variable 'usbdev' set but not used [-Wunused-but-set-variable]
This warning is due to changeset a28fbd04facb, with removed the
usage of usbdev inside pvr2_v4l2_dev_init().
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Mike Isely <isely@pobox.com>
-rw-r--r-- | drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c index d77069e12dc4..7c280f35eea9 100644 --- a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | |||
@@ -1265,7 +1265,6 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, | |||
1265 | struct pvr2_v4l2 *vp, | 1265 | struct pvr2_v4l2 *vp, |
1266 | int v4l_type) | 1266 | int v4l_type) |
1267 | { | 1267 | { |
1268 | struct usb_device *usbdev; | ||
1269 | int mindevnum; | 1268 | int mindevnum; |
1270 | int unit_number; | 1269 | int unit_number; |
1271 | struct pvr2_hdw *hdw; | 1270 | struct pvr2_hdw *hdw; |
@@ -1273,7 +1272,6 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, | |||
1273 | dip->v4lp = vp; | 1272 | dip->v4lp = vp; |
1274 | 1273 | ||
1275 | hdw = vp->channel.mc_head->hdw; | 1274 | hdw = vp->channel.mc_head->hdw; |
1276 | usbdev = pvr2_hdw_get_dev(hdw); | ||
1277 | dip->v4l_type = v4l_type; | 1275 | dip->v4l_type = v4l_type; |
1278 | switch (v4l_type) { | 1276 | switch (v4l_type) { |
1279 | case VFL_TYPE_GRABBER: | 1277 | case VFL_TYPE_GRABBER: |