Re: [PATCH] usb: typec: silence a static checker warning

2021-04-14 Thread Heikki Krogerus
On Wed, Apr 14, 2021 at 10:44:40AM +0300, Dan Carpenter wrote: > Smatch complains about a potential missing error code: > > drivers/usb/typec/port-mapper.c:168 typec_link_port() > warn: missing error code 'ret' > > This is a false positive and returning zero is intentional. Let's > re-ar

[PATCH] usb: typec: silence a static checker warning

2021-04-14 Thread Dan Carpenter
Smatch complains about a potential missing error code: drivers/usb/typec/port-mapper.c:168 typec_link_port() warn: missing error code 'ret' This is a false positive and returning zero is intentional. Let's re-arrange the code to silence the warning and make the intent more clear. Signed