From: Kalesh AP Date: Fri, 30 May 2014 13:36:26 +0000 (+0530) Subject: be2net: re-factor MCCQ error status handling code X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~121^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c60005fe792255cb785c16019e8e0391a931b48;p=pandora-kernel.git be2net: re-factor MCCQ error status handling code This patch improves MCCQ error status handling in the following ways: a) A MCC cmd completion returns a base-status and an addl-status. So far, the routine be_mcc_compl_process() returned only the "status" value. Now, embedd both statuses in the return value and let the caller routine access the value of interest using base_status() and addl_status() macros. b) Rename variables accordingly (base/addl) to avoid confusion while error checking. b) Some of the errors returned by FW are harmless and so an error msg is not logged for such errors. Capture this logic in a separate routine to make the code more readable. Signed-off-by: Kalesh AP Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed