diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-09-21 00:36:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-22 04:05:06 +0200 |
commit | 6b8e327cfa2dfb9da2bd70326494a1f5ca9968f7 (patch) | |
tree | 89ea6871fd5fd98f478c2ff253bd2f8f4e0a72c9 /drivers/net/fddi/skfp/h | |
parent | bna: Remove unnecessary self assignment (diff) | |
download | linux-6b8e327cfa2dfb9da2bd70326494a1f5ca9968f7.tar.xz linux-6b8e327cfa2dfb9da2bd70326494a1f5ca9968f7.zip |
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>
Diffstat (limited to 'drivers/net/fddi/skfp/h')
-rw-r--r-- | drivers/net/fddi/skfp/h/cmtdef.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/fddi/skfp/h/cmtdef.h b/drivers/net/fddi/skfp/h/cmtdef.h index 5d6891154367..a12f464941ed 100644 --- a/drivers/net/fddi/skfp/h/cmtdef.h +++ b/drivers/net/fddi/skfp/h/cmtdef.h @@ -513,7 +513,6 @@ void pcm_status_state(struct s_smc *smc, int np, int *type, int *state, void plc_config_mux(struct s_smc *smc, int mux); void sm_lem_evaluate(struct s_smc *smc); void mac_update_counter(struct s_smc *smc); -void sm_pm_ls_latch(struct s_smc *smc, int phy, int on_off); void sm_ma_control(struct s_smc *smc, int mode); void sm_mac_check_beacon_claim(struct s_smc *smc); void config_mux(struct s_smc *smc, int mux); |