]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: make usage of nla_put clearer
authorYair Shapira <yair.shapira@ti.com>
Wed, 11 Jul 2012 15:48:07 +0000 (18:48 +0300)
committerLuciano Coelho <coelho@ti.com>
Wed, 18 Jul 2012 12:08:22 +0000 (15:08 +0300)
commit9762f0af252d81ee0f7d99e07b4914337f14808f
tree3ef70ddc612b7ea9fa1fc931a2f3a0cdef9d5776
parentc17f24976ed3404653243d87dc40fd6687215925
wlcore: make usage of nla_put clearer

handle errors of nla_put() inside the if(nla_put...) {}

This makes the code simpler and clearer because:
we take advantage from the fact that we have only one nla_put
in our routines (so no real need for goto label).
this avoids ugly goto forward followed by goto backward.

Signed-off-by: Yair Shapira <yair.shapira@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/testmode.c