]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wimax/i2400m: don't change the endianness of one byte variable
authorMuhammad Usama Anjum <musamaanjum@gmail.com>
Thu, 18 Feb 2021 09:21:54 +0000 (14:21 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:25 +0000 (09:25 +0100)
commit5403de1f8e5ee28ac18798173ff8947527696e43
tree3443a317e305e36398a638aad56daa4639e29723
parenta0f6901f6c3aff6f48e6e5547628fdfb6814cb25
staging: wimax/i2400m: don't change the endianness of one byte variable

It is wrong to change the endianness of a variable which has just one
byte size.

Sparse warnings fixed:
drivers/staging//wimax/i2400m/control.c:452:17: warning: cast to restricted __le32
drivers/staging//wimax/i2400m/control.c:452:17: warning: cast to restricted __le32
drivers/staging//wimax/i2400m/op-rfkill.c:159:14: warning: cast to restricted __le32
drivers/staging//wimax/i2400m/op-rfkill.c:160:14: warning: cast to restricted __le32

Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/20210218092154.GA46388@LEGION
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wimax/i2400m/control.c
drivers/staging/wimax/i2400m/op-rfkill.c