]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: remove the redundant judgements for bond_option_queue_id_set()
authordingtianhong <dingtianhong@huawei.com>
Wed, 12 Feb 2014 06:58:50 +0000 (14:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Feb 2014 22:49:13 +0000 (17:49 -0500)
commit67a1cc6d669b432a2162cb0df14e366871eea02c
tree1883d239bf7b2c2ff4492275551bd26cd803dc04
parent6a76c5954f9ba75a45a514751970f02d2dc53f66
bonding: remove the redundant judgements for bond_option_queue_id_set()

The dev_valid_name() will check the buffer length for input name, no need to
check it twice.

Cc: Jay Vosburgh <fubar@us.ibm.com>
Cc: Veaceslav Falico <vfalico@redhat.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_options.c