Skip to content
Commit 03fdb11d authored by Sergei Antonov's avatar Sergei Antonov Committed by Paolo Abeni
Browse files

net: moxa: fix endianness-related issues from 'sparse'



Sparse checker found two endianness-related issues:

.../moxart_ether.c:34:15: warning: incorrect type in assignment (different base types)
.../moxart_ether.c:34:15:    expected unsigned int [usertype]
.../moxart_ether.c:34:15:    got restricted __le32 [usertype]

.../moxart_ether.c:39:16: warning: cast to restricted __le32

Fix them by using __le32 type instead of u32.

Signed-off-by: default avatarSergei Antonov <saproj@gmail.com>
Link: https://lore.kernel.org/r/20220902125037.1480268-1-saproj@gmail.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 9df696b3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment