mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
rtwo: add log
fix issuse:variable 'ret' set but not used Change-Id: Ib25d5b56f02eb3c5a23e088739b72c44bdb058eb Signed-off-by: qiurp1 <qiurp1@lenovo.com> Reviewed-on: https://gerrit.mot.com/2282049 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiyue Cui <cuijy2@lenovo.com> Reviewed-by: Tao Sun <suntao2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
c32d8edb54
commit
6b6e05c2cb
1 changed files with 6 additions and 2 deletions
|
|
@ -819,7 +819,7 @@ static void sx937x_reg_init(psx93XX_t this)
|
|||
*/
|
||||
static int initialize(psx93XX_t this)
|
||||
{
|
||||
int ret, retry;
|
||||
int retry;
|
||||
bool reset_ok = false;
|
||||
if (this)
|
||||
{
|
||||
|
|
@ -843,7 +843,11 @@ static int initialize(psx93XX_t this)
|
|||
LOG_INFO("Sent Software Reset. Waiting until device is back from reset to continue.\n");
|
||||
/* just sleep for awhile instead of using a loop with reading irq status */
|
||||
msleep(100);
|
||||
ret = sx937x_global_variable_init(this);
|
||||
|
||||
if(sx937x_global_variable_init(this)==0)
|
||||
{
|
||||
LOG_INFO("sx937x_global_variable_init success.\n");
|
||||
}
|
||||
sx937x_reg_init(this);
|
||||
|
||||
/* re-enable interrupt handling */
|
||||
|
|
|
|||
Loading…
Reference in a new issue