mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
staging: typec: tcpm: Rewrite comparison to NULL pointer
Make code more concise and readable Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
76f0c53d08
commit
4c87b3e58d
1 changed files with 1 additions and 1 deletions
|
|
@ -986,7 +986,7 @@ static void svdm_consume_modes(struct tcpm_port *port, const __le32 *payload,
|
|||
}
|
||||
port->partner_altmode[pmdata->altmodes] =
|
||||
typec_partner_register_altmode(port->partner, paltmode);
|
||||
if (port->partner_altmode[pmdata->altmodes] == NULL) {
|
||||
if (!port->partner_altmode[pmdata->altmodes]) {
|
||||
tcpm_log(port,
|
||||
"Failed to register alternate modes for SVID 0x%04x",
|
||||
paltmode->svid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue