staging: slicoss: Use inplace convert with __be32 *
authorEbru Akagunduz <ebru.akagunduz@gmail.com>
Thu, 23 Oct 2014 13:10:16 +0000 (16:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:05 +0000 (10:33 +0800)
commit438c582602b9e0b421bd356f3f2cdc77fe45eb5b
tree7b3cf0bb0dec4032e4853a1339b3b1ac824d773d
parente31a0e62803c64cab5e150b94c31364a1ce1d0fd
staging: slicoss: Use inplace convert with __be32 *

This patch fixes "cast to restricted __be32"
sparse warning.

remove  temporary value assignment and use inplace
__be32 conversion for ntohl function which is can
get big endian format

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c