diff options
author | Julia Lawall <julia@diku.dk> | 2009-02-04 22:43:04 +0100 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-02-06 10:44:28 -0600 |
commit | 08c6e3a57877ceda5c2f4c99ae7d433b8eef779a (patch) | |
tree | 6b1d5d771d1704084aac6cc7fb67449859fc97c1 /arch/powerpc/platforms/82xx | |
parent | 7f3ea17f316577e31db868f720ac575c74d20163 (diff) | |
download | linux-08c6e3a57877ceda5c2f4c99ae7d433b8eef779a.tar.bz2 |
arch/powerpc: Eliminate double sizeof
Taking sizeof the result of sizeof is quite strange and does not seem to be
what is wanted here.
This was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression E;
@@
- sizeof (
sizeof (E)
- )
@@
type T;
@@
- sizeof (
sizeof (T)
- )
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/82xx')
-rw-r--r-- | arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c b/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c index 9876d7e072f4..ddf0bdc0fc8b 100644 --- a/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +++ b/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c @@ -186,7 +186,7 @@ out_unmap_regs: iounmap(priv->regs); out_free_bootmem: free_bootmem((unsigned long)priv, - sizeof(sizeof(struct pq2ads_pci_pic))); + sizeof(struct pq2ads_pci_pic)); of_node_put(np); out_unmap_irq: irq_dispose_mapping(irq); |