diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2014-11-25 14:04:43 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-26 08:00:13 +0300 |
commit | 473f3766b5c2145f4c70bed39f4595b15c889ae2 (patch) | |
tree | ce41c1b081dfe1cc8c25beec709c0e542dec910d /drivers/bluetooth/ath3k.c | |
parent | 69bb631ef9505df1eb4123bc01d2218f7b48c577 (diff) | |
download | linux-473f3766b5c2145f4c70bed39f4595b15c889ae2.tar.xz |
mac802154: remove unnecessary if statement
Removes unnecessary if statement check for net device. Error check performed
after alloc_netdev().
ndev = alloc_netdev(sizeof(*sdata) + local->hw.vif_data_size, name,
NET_NAME_UNKNOWN, ieee802154_if_setup);
if (!ndev)
return ERR_PTR(-ENOMEM);
..
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/ath3k.c')
0 files changed, 0 insertions, 0 deletions