mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -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:
committed by
Greg Kroah-Hartman
parent
f6ef6c094e
commit
d45c4c654d
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user