mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-11 06:15:41 +00:00
Clang warns when a variable is assigned to itself.
drivers/net/fddi/skfp/pcmplc.c:1257:6: warning: explicitly assigning
value of variable of type 'int' to itself [-Wself-assign]
phy = phy ; on_off = on_off ;
~~~ ^ ~~~
drivers/net/fddi/skfp/pcmplc.c:1257:21: warning: explicitly assigning
value of variable of type 'int' to itself [-Wself-assign]
phy = phy ; on_off = on_off ;
~~~~~~ ^ ~~~~~~
2 warnings generated.
Turns out this entire function doesn't actually do anything since
SK_UNUSED is just casting the pointer to void. Remove it to silence
this Clang warning.
Link: https://github.com/ClangBuiltLinux/linux/issues/128
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
|
||
|---|---|---|
| .. | ||
| cmtdef.h | ||
| fddi.h | ||
| fddimib.h | ||
| fplustm.h | ||
| hwmtm.h | ||
| mbuf.h | ||
| osdef1st.h | ||
| sba_def.h | ||
| sba.h | ||
| skfbi.h | ||
| skfbiinc.h | ||
| smc.h | ||
| smt_p.h | ||
| smt.h | ||
| smtstate.h | ||
| supern_2.h | ||
| targethw.h | ||
| targetos.h | ||
| types.h | ||