lustre: ko2iblnd: removed forced u32 casts after htonl
authorNikola Jelic <nikola.jelic83@gmail.com>
Fri, 19 May 2017 18:48:07 +0000 (20:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 08:32:41 +0000 (17:32 +0900)
commit78c486189dde9affd39a2a8b9d27ee32cea4a04e
tree7a3369a91b22bee9c5cfe85d729b2830b691ad79
parent135e55f1d712fc4f92302aa9daa6304a51963678
lustre: ko2iblnd: removed forced u32 casts after htonl

sockaddr_in.sin_addr.s_addr is __be32 integral type, so the (__force u32)
cast after the htonl call is unnecessary, and also detected by sparse:
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:2309:33: warning: incorrect type in assignment (different base types)
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c:2381:30: warning: incorrect type in assignment (different base types)

Signed-off-by: Nikola Jelic <nikola.jelic83@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c