[PATCH] openpromfs: factorize out
authorJan Engelhardt <jengelh@gmx.de>
Sun, 25 Jun 2006 12:47:36 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:05 +0000 (10:01 -0700)
commita04ee14636fa339c4609766bd6173629d4f9026e
tree2a0e960d35f9cc586d128578adbf4a11aac45e40
parent515decdccf81cfbf5273d7f0085aea954ecd26c4
[PATCH] openpromfs: factorize out

"Move" "common code" out to PTR_NOD, which does the conversion from private
pointer to node number.  This is to reduce potential casting/conversion errors
due to redundancy.  (The naming PTR_NOD follows PTR_ERR, turning a pointer
into xyz.)

[akpm@osdl.org: cleanups]
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/openpromfs/inode.c