OSDN Git Service

r8169: silence sparse warning in rtl8169_start_xmit
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 6 Jun 2019 05:49:17 +0000 (07:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jun 2019 17:23:31 +0000 (10:23 -0700)
commit355f948adf3aedb1b2f1644ce5bbefe39177e28a
tree51a637c74aaf204ad6b5843ef0bd44edccfb2524
parentec01147a4bceabe092e569874582644625e6ad42
r8169: silence sparse warning in rtl8169_start_xmit

The opts[] array is of type u32. Therefore remove the wrong
cpu_to_le32(). The opts[] array members are converted to little endian
later when being assigned to the respective descriptor fields.

This is not a new issue, it just popped up due to r8169.c having
been renamed and more thoroughly checked. Due to the renaming
this patch applies to net-next only.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c