staging: wilc1000: wilc_msgqueue.c : remove goto statement
authorLeo Kim <leo.kim@atmel.com>
Wed, 28 Oct 2015 06:27:21 +0000 (15:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Oct 2015 23:16:52 +0000 (08:16 +0900)
commitdbef61e749caf22b51ed4e1981aedd8426a4d837
tree6911a03b5a9681b62c42214795d2ea81679dd707
parent82bb18e1bdcd774059556c58650a04c004a21c9d
staging: wilc1000: wilc_msgqueue.c : remove goto statement

This patch removes goto statement and moves the spin lock position.
If a memory allocation fails, directly returns an error.
The spin lock actually protects the pHandle. Therefore, call spin lock just
before pHandle is used.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Tony Cho <tony.cho@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_msgqueue.c
This page took 0.03944 seconds and 5 git commands to generate.