mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
usb: typec: mux: remove redundant check on variable match
All the code paths that lead to the return statement are where
match is always true, hence the check to see if it is true is
redundant and can be removed.
Detected by CoverityScan, CID#14769672 ("Logically dead code")
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
98bba546e8
commit
eb76b37aaf
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ find_mux:
|
|||
if (dev_fwnode(mux->dev) == con->fwnode)
|
||||
return mux;
|
||||
|
||||
return match ? ERR_PTR(-EPROBE_DEFER) : NULL;
|
||||
return ERR_PTR(-EPROBE_DEFER);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue