* [folded] gpio-pca953x-get-platform_data-from-openfirmware-checkpatch-fixes-gpio-pca953x-get-platform_data-from-openfirmware-cleanups.patch removed from -mm tree
@ 2009-06-17 22:45 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2009-06-17 22:45 UTC (permalink / raw)
To: akpm, david-b, ncase, mm-commits
The patch titled
gpio-pca953x-get-platform_data-from-openfirmware-checkpatch-fixes-gpio-pca953x-get-platform_data-from-openfirmware-cleanups
has been removed from the -mm tree. Its filename was
gpio-pca953x-get-platform_data-from-openfirmware-checkpatch-fixes-gpio-pca953x-get-platform_data-from-openfirmware-cleanups.patch
This patch was dropped because it was folded into gpio-pca953x-get-platform_data-from-openfirmware.patch
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: gpio-pca953x-get-platform_data-from-openfirmware-checkpatch-fixes-gpio-pca953x-get-platform_data-from-openfirmware-cleanups
From: Andrew Morton <akpm@linux-foundation.org>
kfree(NULL) is legal
Cc: Nate Case <ncase@xes-inc.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/gpio/pca953x.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff -puN drivers/gpio/pca953x.c~gpio-pca953x-get-platform_data-from-openfirmware-checkpatch-fixes-gpio-pca953x-get-platform_data-from-openfirmware-cleanups drivers/gpio/pca953x.c
--- a/drivers/gpio/pca953x.c~gpio-pca953x-get-platform_data-from-openfirmware-checkpatch-fixes-gpio-pca953x-get-platform_data-from-openfirmware-cleanups
+++ a/drivers/gpio/pca953x.c
@@ -316,8 +316,7 @@ static int __devinit pca953x_probe(struc
return 0;
out_failed:
- if (chip->dyn_pdata != NULL)
- kfree(chip->dyn_pdata);
+ kfree(chip->dyn_pdata);
kfree(chip);
return ret;
}
@@ -345,9 +344,7 @@ static int pca953x_remove(struct i2c_cli
return ret;
}
- if (chip->dyn_pdata != NULL)
- kfree(chip->dyn_pdata);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-17 22:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 22:45 [folded] gpio-pca953x-get-platform_data-from-openfirmware-checkpatch-fixes-gpio-pca953x-get-platform_data-from-openfirmware-cleanups.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.