diff options
| author | Biju Das <[email protected]> | 2019-10-07 16:38:49 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-10 12:34:07 +0200 |
| commit | 5a9a8a4c505851cfb1fe5772851fb528476575bb (patch) | |
| tree | ec77cc82d54c4d028d657a1b5fa7fc6ac1909a6a /tools/perf/scripts/python | |
| parent | a4f55d8b8c146f9d99fe004bc9d1403d4c149ae3 (diff) | |
usb: typec: hd3ss3220: hd3ss3220_probe() warn: passing zero to 'PTR_ERR'
This patch fixes the warning passing zero to 'PTR_ERR' by changing the
check from 'IS_ERR_OR_NULL' to 'IS_ERR'. Also improved the error handling
on probe function.
Fixes: 1c48c759ef4b ("usb: typec: driver for TI HD3SS3220 USB Type-C DRP port controller")
Reported-by: kbuild test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Biju Das <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions