diff options
| author | Jérôme Pouiller <[email protected]> | 2020-10-09 17:13:03 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-10-10 10:33:59 +0000 |
| commit | b3c669be90ddfa70409ab6335dadf3ef46473f9a (patch) | |
| tree | e0806990935d0da1cb361a51b69bdfdf24ea9a43 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | staging: wfx: standardize the error when vif does not exist (diff) | |
| download | kernel-b3c669be90ddfa70409ab6335dadf3ef46473f9a.tar.gz kernel-b3c669be90ddfa70409ab6335dadf3ef46473f9a.zip | |
staging: wfx: wfx_init_common() returns NULL on error
Smatch complains:
bus_spi.c:228 wfx_spi_probe() warn: 'bus->core' could be an error pointer
bus_sdio.c:221 wfx_sdio_probe() warn: 'bus->core' could be an error pointer
bus->core contains the result of wfx_init_common(). With this patch,
wfx_init_common() returns a valid pointer or NULL.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Jérôme Pouiller <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
