diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-28 06:57:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-07-26 13:55:00 -0400 |
commit | 0ee4c2ac1858a60ea2458347f12371437f922400 (patch) | |
tree | 592473ee4e20f0d1e0ccb4ca6b38b71b7ebb4937 | |
parent | 40feb52fb6e4fe6fcdbfb533c5c811d56f9bd98c (diff) |
[media] drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c: remove unnecessary null test before usb_free_urb
Fix checkpatch warning:
WARNING: usb_free_urb(NULL) is safe this check is probably not required
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r-- | drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c index f8a60c197534..f166ffc9800a 100644 --- a/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c +++ b/drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c | |||
@@ -791,8 +791,7 @@ static void ttusb_free_iso_urbs(struct ttusb *ttusb) | |||
791 | int i; | 791 | int i; |
792 | 792 | ||
793 | for (i = 0; i < ISO_BUF_COUNT; i++) | 793 | for (i = 0; i < ISO_BUF_COUNT; i++) |
794 | if (ttusb->iso_urb[i]) | 794 | usb_free_urb(ttusb->iso_urb[i]); |
795 | usb_free_urb(ttusb->iso_urb[i]); | ||
796 | 795 | ||
797 | pci_free_consistent(NULL, | 796 | pci_free_consistent(NULL, |
798 | ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * | 797 | ISO_FRAME_SIZE * FRAMES_PER_ISO_BUF * |