mac802154: use goto label on failure
PATCH 1/2 mac802154: use goto label on failure
Signed-off-by Varka Bhadram <[email protected]>
--- net/mac802154/rx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
net/mac802154/rx.c +1 -2
@@ -85,8 +85,7 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,default :spin_unlock_bh (&sdata->mib_lock);pr_debug ("invalid dest mode\n" ); -kfree_skb (skb); -return NET_RX_DROP ; + goto fail; }spin_unlock_bh (&sdata->mib_lock);
Signature · 1 line
1.7.9.5
PATCH 2/2 cc2520: adds terminating newline
Signed-off-by Varka Bhadram <[email protected]>
--- drivers/net/ieee802154/cc2520.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ieee802154/cc2520.c +1 -1
@@ -858,7 +858,7 @@ static int cc2520_probe(struct spi_device *spi) pinctrl =devm_pinctrl_get_select_default (&spi->dev);if (IS_ERR (pinctrl))dev_warn (&spi->dev, -"pinctrl pins are not configured" ); +"pinctrl pins are not configured\n" ); pdata =cc2520_get_platform_data (spi);if (!pdata) {
Signature · 1 line
1.7.9.5
Hello.
Quoted 19 lines · Varka Bhadram
Signed-off-by Varka Bhadram <[email protected]>--- net/mac802154/rx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)net/mac802154/rx.c +1
-2@@ -85,8 +85,7 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata, default:spin_unlock_bh (&sdata->mib_lock);pr_debug ("invalid dest mode\n" ); -kfree_skb (skb); -return NET_RX_DROP ; + goto fail; }
Quoted 2 lines
spin_unlock_bh(&sdata->mib_lock);
Good catch!
Reviewed-by Stefan Schmidt <[email protected]>
regards
Stefan Schmidt
Quoted 1 line · Varka Bhadram
Signed-off-by Varka Bhadram <[email protected]>
Acked-by Alexander Aring <[email protected]>
on the complete serie. Thanks.
- Alex
Hi Varka,
Quoted 4 lines
Signed-off-by Varka Bhadram <[email protected]>---
net/mac802154/rx.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
Re: [PATCH bluetooth-next 2/2] cc2520: adds terminating newline
In reply to Varka BhadramHi Varka,
Quoted 4 lines
Signed-off-by Varka Bhadram <[email protected]>---
drivers/net/ieee802154/cc2520.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel