mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 02:12:00 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
dce57aef61
commit
a2fcca426d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user