aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/htc-egpio.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-02-04 14:44:01 -0500
committerSamuel Ortiz <samuel@sortiz.org>2009-02-17 03:00:10 -0500
commit720fd66dfad1b0286721dbb2ed4d6076c0aa953b (patch)
tree9c84f95fe28cc6bad94798f14d8351e5c777be2f /drivers/mfd/htc-egpio.c
parentd2f8d7ee1a9b4650b4e43325b321801264f7c37a (diff)
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/htc-egpio.c')
-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)
307 307
308 ei->nchips = pdata->num_chips; 308 ei->nchips = pdata->num_chips;
309 ei->chip = kzalloc(sizeof(struct egpio_chip) * ei->nchips, GFP_KERNEL); 309 ei->chip = kzalloc(sizeof(struct egpio_chip) * ei->nchips, GFP_KERNEL);
310 if (!ei) { 310 if (!ei->chip) {
311 ret = -ENOMEM; 311 ret = -ENOMEM;
312 goto fail; 312 goto fail;
313 } 313 }