]> git.karo-electronics.de Git - linux-beck.git/commit
staging: wilc1000: remove goto from wlan_initialize_threads
authorLeo Kim <leo.kim@atmel.com>
Thu, 5 Nov 2015 05:36:33 +0000 (14:36 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
commit6bc72c5ac7996819961bf65d64693efd3135ea42
tree87d26cac848683bb46855f9186bdcf28bdf4db61
parenta40b22c544ce6bd70f14cf8c5fcb07ef5e64e5d5
staging: wilc1000: remove goto from wlan_initialize_threads

This patch remove goto feature from wlan_initialize_threads function.
Goto feature is 'wilc->close=0' & return result.
So, remove goto feature and it was replaced with the return value directly,
as well as removed unused ret variable.
Also, execute 'wilc->close=0' before return.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c