[2.4 PATCH] fs ufs macro parenthesis fix

From: Mariusz Kozlowski
Date: Fri Dec 01 2006 - 10:19:45 EST


Hello,

This patch fixes parenthesis stuff in ubh_get_addr16() macro code.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@xxxxxxxxxx>

fs/ufs/util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.4.34-pre6-a/fs/ufs/util.h 2002-02-25 20:38:09.000000000 +0100
+++ linux-2.4.34-pre6-b/fs/ufs/util.h 2006-12-01 11:51:08.000000000 +0100
@@ -273,7 +273,7 @@ extern void _ubh_memcpyubh_(struct ufs_s

#define ubh_get_addr16(ubh,begin) \
(((u16*)((ubh)->bh[(begin) >> (uspi->s_fshift-1)]->b_data)) + \
- ((begin) & (uspi->fsize>>1) - 1)))
+ ((begin) & ((uspi->fsize>>1) - 1)))

#define ubh_get_addr32(ubh,begin) \
(((u32*)((ubh)->bh[(begin) >> (uspi->s_fshift-2)]->b_data)) + \


--
Regards,

Mariusz Kozlowski
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/