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>
This commit is contained in:

committed by
David S. Miller

parent
83b4768e1b
commit
6b8e327cfa
@@ -30,7 +30,6 @@
|
||||
*
|
||||
* The following external HW dependent functions are referenced :
|
||||
* sm_pm_bypass_req()
|
||||
* sm_pm_ls_latch()
|
||||
* sm_pm_get_ls()
|
||||
*
|
||||
* The following HW dependent events are required :
|
||||
@@ -356,8 +355,6 @@ static void ecm_fsm(struct s_smc *smc, int cmd)
|
||||
*/
|
||||
start_ecm_timer(smc,smc->s.ecm_check_poll,0) ;
|
||||
smc->e.ecm_line_state = TRUE ; /* flag to pcm: report Q/HLS */
|
||||
(void) sm_pm_ls_latch(smc,PA,1) ; /* enable line state latch */
|
||||
(void) sm_pm_ls_latch(smc,PB,1) ; /* enable line state latch */
|
||||
ACTIONS_DONE() ;
|
||||
break ;
|
||||
case EC6_CHECK :
|
||||
|
Reference in New Issue
Block a user