summaryrefslogtreecommitdiff
path: root/tools/objtool
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2018-09-20 15:48:30 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-22 09:19:03 +0100
commit77c91834faebe5b3959dac0e4bc964b95696c159 (patch)
tree7170f2ca2277020805a65456668b992b024cd82f /tools/objtool
parent03029bb044ccee60adbc93e70713f3ae58abc3a1 (diff)
net: lan78xx: Avoid unnecessary self assignment
commit 94e7c844990f0db92418586b107be135b4963b66 upstream. Clang warns when a variable is assigned to itself. drivers/net/usb/lan78xx.c:940:11: warning: explicitly assigning value of variable of type 'u32' (aka 'unsigned int') to itself [-Wself-assign] offset = offset; ~~~~~~ ^ ~~~~~~ 1 warning generated. Reorder the if statement to acheive the same result and avoid a self assignment warning. Link: https://github.com/ClangBuiltLinux/linux/issues/129 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/objtool')
0 files changed, 0 insertions, 0 deletions