From: Bing Zhao Date: Fri, 28 Feb 2014 03:35:12 +0000 (-0800) Subject: mwifiex: remove global variable cmd_wait_q_required X-Git-Tag: v3.15-rc1~113^2~159^2^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa0ecbb9905d985a77e76801ba1153394ba593e8;p=pandora-kernel.git mwifiex: remove global variable cmd_wait_q_required There is a race condition while queuing synchronous command and asynchronous command requested from different threads, because the wait_q_enabled flag is set based on a global variable cmd_wait_q_required. The issue is fixed by removing this global variable and using a unified function with an argument 'sync' passed into the function. Signed-off-by: Bing Zhao Signed-off-by: Amitkumar Karwar Signed-off-by: John W. Linville --- Reading git-diff-tree failed