Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: t7l66xb: Remove unnecessary pdata check

o Making pdata NULL check to (!pdata) as coding standard
and all other checks in file.
o Removing redundant check of pdata, because we already
check for pdata, and also derefernced before this check.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Maninder Singh and committed by
Lee Jones
78b7d84c 088d862c

+2 -2
+2 -2
drivers/mfd/t7l66xb.c
··· 318 318 struct resource *iomem, *rscr; 319 319 int ret; 320 320 321 - if (pdata == NULL) 321 + if (!pdata) 322 322 return -EINVAL; 323 323 324 324 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); ··· 371 371 372 372 clk_prepare_enable(t7l66xb->clk48m); 373 373 374 - if (pdata && pdata->enable) 374 + if (pdata->enable) 375 375 pdata->enable(dev); 376 376 377 377 /* Mask all interrupts */