]> git.baikalelectronics.ru Git - kernel.git/commit
staging: et131x: Use upper_32_bits() instead of '>> 32'
authorMark Einon <mark.einon@gmail.com>
Fri, 19 Oct 2012 22:08:15 +0000 (23:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 23:02:18 +0000 (16:02 -0700)
commitb303ffed6d1da7f4c56e2ae22bda0c7b4110d792
tree5a7659790ea9f3c1c435ae293f92b1901aff7381
parent2eacc3497e42165da88827cd40a8ea597324c2a7
staging: et131x: Use upper_32_bits() instead of '>> 32'

'>> 32 of a 32bit value is undefined in C. The compiler is free
to do what it likes with this...'

Change all uses of '>> 32' to use upper_32_bits() and use
the corresponding lower_32_bits() to match.

Also remove an incorrect comment about dma alloc always returning 32bit
addresses.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c