]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ppc64: Remove redundant use of pointers in lmb code
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 3 Aug 2005 10:21:24 +0000 (20:21 +1000)
committerPaul Mackerras <paulus@samba.org>
Mon, 29 Aug 2005 00:53:36 +0000 (10:53 +1000)
commita4a0f97020444f83bf22bb9c8c20d8af2b4e6317
treee57ee269fa71c46a43d8a4ffe4df82ec6780c744
parentaefd16b0c5a594b5feaba23954ad74061f45c8a5
[PATCH] ppc64: Remove redundant use of pointers in lmb code

The lmb code is all written to use a pointer to an lmb struct. But it's always
the same lmb struct, called "lmb". So we take the address of lmb, call it
_lmb and then start using _lmb->foo everywhere, which is silly.

This patch removes the _lmb pointers and replaces them with direct references
to the one "lmb" struct. We do the same for some _mem and _rsv pointers which
point to lmb.memory and lmb.reserved respectively.

This patch looks quite busy, but it's basically just:
s/_lmb->/lmb./g
s/_mem->/lmb.memory./g
s/_rsv->/lmb.reserved./g
s/_rsv/&lmb.reserved/g
s/mem->/lmb.memory./g

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/kernel/lmb.c