Skip to content

Commit

Permalink
[IRDA]: Avoid a label defined but not used warning in irda_init()
Browse files Browse the repository at this point in the history
Easily avoidable compiler warnings bug me.

Building irmod without CONFIG_SYSCTL currently results in :
 net/irda/irmod.c:132: warning: label 'out_err_2' defined but not used

But that can easily be avoided by simply moving the label inside
the existing "#ifdef CONFIG_SYSCTL" one line above it.

This patch moves the label and buys us one less warning with no
ill effects.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jesper Juhl authored and David S. Miller committed Aug 22, 2007
1 parent 8984e41 commit 2c20d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/irda/irmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ static int __init irda_init(void)
out_err_3:
#ifdef CONFIG_SYSCTL
irda_sysctl_unregister();
#endif
out_err_2:
#endif
#ifdef CONFIG_PROC_FS
irda_proc_unregister();
#endif
Expand Down

0 comments on commit 2c20d72

Please sign in to comment.