From: Aaro Koskinen Date: Fri, 26 Feb 2016 00:13:51 +0000 (+0200) Subject: staging: octeon-usb: use preferred style for NULL comparison X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2fcca426db1e3330a9a2f4a3f5ad04624ba108a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: octeon-usb: use preferred style for NULL comparison Use preferred coding style for NULL comparison. Signed-off-by: Aaro Koskinen Signed-off-by: Greg Kroah-Hartman --- 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; }