Home
last modified time | relevance | path

Searched hist:bf722d1d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/wireless/ti/wlcore/
H A Dtestmode.cbf722d1d Wed Jul 11 10:48:07 CDT 2012 Yair Shapira <yair.shapira@ti.com> 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>
bf722d1d Wed Jul 11 10:48:07 CDT 2012 Yair Shapira <yair.shapira@ti.com> 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>