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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
195af2cce5
commit
e94fa28f13
@ -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 */
|
||||
|
Reference in New Issue
Block a user