summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/mos7720.c
diff options
context:
space:
mode:
authorFlorin Malita2007-07-16 17:50:53 +0200
committerGreg Kroah-Hartman2007-07-20 02:46:04 +0200
commite94fa28f137813c2f6e05470b41bd8f3c5422a04 (patch)
treef905111f970cd1e971d5afc43dabe94afd87c2ed /drivers/usb/serial/mos7720.c
parentUSB: fix warning caused by autosuspend counter going negative (diff)
downloadkernel-qcow2-linux-e94fa28f137813c2f6e05470b41bd8f3c5422a04.tar.gz
kernel-qcow2-linux-e94fa28f137813c2f6e05470b41bd8f3c5422a04.tar.xz
kernel-qcow2-linux-e94fa28f137813c2f6e05470b41bd8f3c5422a04.zip
USB: mos7720, mos7840: remove redundant urb check
Coverity (1709, 1710, 1711, 1712, 1713) actually flagged these as REVERSE_INULLs (NULL check performed after dereference). But looking at the other drivers I can't see any similar tests and the USB core already makes sure urb is non-null - so might as well get rid of the checks. Signed-off-by: Florin Malita <fmalita@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/mos7720.c')
-rw-r--r--drivers/usb/serial/mos7720.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
index 231b584f6d0f..01e811becec4 100644
--- a/drivers/usb/serial/mos7720.c
+++ b/drivers/usb/serial/mos7720.c
@@ -110,11 +110,6 @@ static void mos7720_interrupt_callback(struct urb *urb)
dbg("%s"," : Entering\n");
- if (!urb) {
- dbg("%s","Invalid Pointer !!!!:\n");
- return;
- }
-
switch (status) {
case 0:
/* success */