Skip to content

Commit

Permalink
[IRDA] irda_nl_get_mode: always results in failure
Browse files Browse the repository at this point in the history
It seems an extraneous trailing ';' has slipped in to the error handling for a
name registration failure causing the error path to trigger unconditionally.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andy Whitcroft authored and David S. Miller committed Aug 22, 2007
1 parent 06c7af5 commit 22117ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/irda/irnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static int irda_nl_get_mode(struct sk_buff *skb, struct genl_info *info)
}

if(nla_put_string(msg, IRDA_NL_ATTR_IFNAME,
dev->name));
dev->name))
goto err_out;

if(nla_put_u32(msg, IRDA_NL_ATTR_MODE, irlap->mode))
Expand Down

0 comments on commit 22117ea

Please sign in to comment.