summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-02-04 20:44:01 +0100
committerSamuel Ortiz <samuel@sortiz.org>2009-02-17 09:00:10 +0100
commit720fd66dfad1b0286721dbb2ed4d6076c0aa953b (patch)
tree9c84f95fe28cc6bad94798f14d8351e5c777be2f /drivers/mfd
parentd2f8d7ee1a9b4650b4e43325b321801264f7c37a (diff)
downloadlinux-stable-720fd66dfad1b0286721dbb2ed4d6076c0aa953b.tar.gz
linux-stable-720fd66dfad1b0286721dbb2ed4d6076c0aa953b.tar.bz2
linux-stable-720fd66dfad1b0286721dbb2ed4d6076c0aa953b.zip
mfd: Fix egpio kzalloc return test
Since ei is already known to be non-NULL, I assume that what was intended was to test the result of kzalloc. Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/htc-egpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/htc-egpio.c b/drivers/mfd/htc-egpio.c
index 1a4d04664d6d..194df7b8256c 100644
--- a/drivers/mfd/htc-egpio.c
+++ b/drivers/mfd/htc-egpio.c
@@ -307,7 +307,7 @@ static int __init egpio_probe(struct platform_device *pdev)
ei->nchips = pdata->num_chips;
ei->chip = kzalloc(sizeof(struct egpio_chip) * ei->nchips, GFP_KERNEL);
- if (!ei) {
+ if (!ei->chip) {
ret = -ENOMEM;
goto fail;
}