Re: [PATCH]arm: nwfpe: '&pointer[0]' to 'pointer' fix

From: Russell King - ARM Linux
Date: Thu Aug 25 2011 - 15:15:22 EST


On Thu, Aug 25, 2011 at 10:11:43PM +0300, Maxin B. John wrote:
> '&pointer[0]' to 'pointer' fix in arch/arm/nwfpe/fpa11_cpdt.c

Your reason being?

> #ifdef __ARMEB__
> - get_user(p[0], &pMem[0]); /* sign & exponent */
> + get_user(p[0], pMem); /* sign & exponent */
> get_user(p[1], &pMem[1]);

You may notice the original code has some consistency. Your replacement
is less consistent. If you wish to make this change, it should change to:

get_user(p[0], pMem + 0);
get_user(p[1], pMem + 1);

to maintain consistency.
--
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/