mirror_ubuntu-kernels/drivers/net/fddi/skfp/h
Nathan Chancellor 6b8e327cfa net: fddi: skfp: Remove unused function
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>
2018-09-21 19:05:06 -07:00
..
cmtdef.h net: fddi: skfp: Remove unused function 2018-09-21 19:05:06 -07:00
fddi.h
fddimib.h
fplustm.h
hwmtm.h skfp: hwmtm: Use proper logging macros, correct mismatches 2016-12-29 11:37:14 -05:00
mbuf.h
osdef1st.h
sba_def.h
sba.h
skfbi.h drivers/net/fddi/skfp/h/skfbi.h: Remove useless PCI_BASE_2ND macros 2014-09-05 14:51:09 -07:00
skfbiinc.h
smc.h fddi/skfp: Remove extern from function prototypes 2013-09-24 12:54:15 -07:00
smt_p.h
smt.h
smtstate.h
supern_2.h fddi: cleanup unsigned to unsigned int/short 2013-12-16 20:07:59 -05:00
targethw.h
targetos.h drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
types.h