usb_free_urb(NULL) is safe. So, the check was removed. Also, couple of checkpatch.pl fixes
Signed-off-by: Harsh Kumar <harsh1kumar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
}
}
-static unsigned char hal_get_dxx_reg(struct hw_data *pHwData, u16 number, u32 * pValue)
+static unsigned char hal_get_dxx_reg(struct hw_data *pHwData, u16 number, u32 *pValue)
{
if (number < 0x1000)
number += 0x1000;
return true;
} else {
- if (urb)
- usb_free_urb(urb);
+ usb_free_urb(urb);
kfree(reg_queue);
return false;
}
- return false;
+ return false;
}
void Wb35Reg_Update(struct hw_data *pHwData, u16 RegisterNo, u32 RegisterValue)
return true;
} else {
- if (urb)
- usb_free_urb(urb);
+ usb_free_urb(urb);
kfree(reg_queue);
return false;
}
Wb35Reg_EP0VM_start(pHwData);
return true;
} else {
- if (urb)
- usb_free_urb(urb);
+ usb_free_urb(urb);
kfree(reg_queue);
return false;
}
return true;
} else {
- if (urb)
- usb_free_urb(urb);
+ usb_free_urb(urb);
kfree(reg_queue);
return false;
}
} while (pWb35Rx->EP3vm_state != VM_STOP);
msleep(10); /* Delay for waiting function exit */
- if (pWb35Rx->RxUrb)
- usb_free_urb(pWb35Rx->RxUrb);
+ usb_free_urb(pWb35Rx->RxUrb);
pr_debug("Wb35Rx_destroy OK\n");
}