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)
commitc313c89edb93eeac0646dcc6d6cb7fb404d4056d
tree1883d239bf7b2c2ff4492275551bd26cd803dc04
parent805d157e8f4273eeafeeab53c3a5d295ac0d9208
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