diff options
author | Maninder Singh <maninder1.s@samsung.com> | 2015-07-02 08:52:58 +0530 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-08-11 15:08:44 +0100 |
commit | 78b7d84c8f6e49f68d7b63c4d67242d4c1bfbadd (patch) | |
tree | 5492226fdcdb9706ca888707c7fc7f4b4b3e6ee8 /drivers/mfd/t7l66xb.c | |
parent | 088d862c53f9664d8bca9f56fb4590e36fbf587a (diff) | |
download | linux-78b7d84c8f6e49f68d7b63c4d67242d4c1bfbadd.tar.gz linux-78b7d84c8f6e49f68d7b63c4d67242d4c1bfbadd.tar.bz2 linux-78b7d84c8f6e49f68d7b63c4d67242d4c1bfbadd.zip |
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>
Diffstat (limited to 'drivers/mfd/t7l66xb.c')
-rw-r--r-- | drivers/mfd/t7l66xb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index c09fb5dccd50..854b05f840bb 100644 --- a/drivers/mfd/t7l66xb.c +++ b/drivers/mfd/t7l66xb.c @@ -318,7 +318,7 @@ static int t7l66xb_probe(struct platform_device *dev) struct resource *iomem, *rscr; int ret; - if (pdata == NULL) + if (!pdata) return -EINVAL; iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); @@ -371,7 +371,7 @@ static int t7l66xb_probe(struct platform_device *dev) clk_prepare_enable(t7l66xb->clk48m); - if (pdata && pdata->enable) + if (pdata->enable) pdata->enable(dev); /* Mask all interrupts */ |