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:
qiurp1 2022-05-27 17:13:39 +08:00 • committed by qiurp1
commit 6b6e05c2cb

View file

@ -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 */