mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Staging: emxx_udc: Remove argument test from function
This patch removes the test statement for an argument to _nbu2ss_pullup function, for it can't be null due to previous derefrences. Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f6ef6c094e
commit
d45c4c654d
1 changed files with 0 additions and 5 deletions
|
|
@ -2257,11 +2257,6 @@ static int _nbu2ss_pullup(struct nbu2ss_udc *udc, int is_on)
|
|||
{
|
||||
u32 reg_dt;
|
||||
|
||||
if (!udc) {
|
||||
ERR("%s, bad param\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (udc->vbus_active == 0)
|
||||
return -ESHUTDOWN;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue