diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2016-02-26 02:13:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-25 22:38:16 -0800 |
commit | a2fcca426db1e3330a9a2f4a3f5ad04624ba108a (patch) | |
tree | f26fd89622c41899387e7613c72e776b2bb4fbc8 /drivers/staging/octeon-usb | |
parent | dce57aef61ae49edf45df6fc09609e8da9b57265 (diff) | |
download | linux-stable-a2fcca426db1e3330a9a2f4a3f5ad04624ba108a.tar.gz linux-stable-a2fcca426db1e3330a9a2f4a3f5ad04624ba108a.tar.bz2 linux-stable-a2fcca426db1e3330a9a2f4a3f5ad04624ba108a.zip |
staging: octeon-usb: use preferred style for NULL comparison
Use preferred coding style for NULL comparison.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon-usb')
-rw-r--r-- | drivers/staging/octeon-usb/octeon-hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index 1ec890625323..27a754202156 100644 --- a/drivers/staging/octeon-usb/octeon-hcd.c +++ b/drivers/staging/octeon-usb/octeon-hcd.c @@ -3553,7 +3553,7 @@ static int octeon_usb_probe(struct platform_device *pdev) const char *clock_type; int i; - if (dev->of_node == NULL) { + if (!dev->of_node) { dev_err(dev, "Error: empty of_node\n"); return -ENXIO; } @@ -3599,7 +3599,7 @@ static int octeon_usb_probe(struct platform_device *pdev) initialize_flags |= CVMX_USB_INITIALIZE_FLAGS_CLOCK_XO_GND; res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (res_mem == NULL) { + if (!res_mem) { dev_err(dev, "found no memory resource\n"); return -ENXIO; } |