drivers: sensorhub: fix misleading intendation
authorAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 22:55:52 +0000 (02:55 +0400)
committerAnan Jaser <ananjaser@gmail.com>
Tue, 22 Sep 2020 22:55:52 +0000 (02:55 +0400)
Change-Id: I76ef0a3f15e1f58d58a6895bc764d5e9c180c166

drivers/sensorhub/brcm/ssp_i2c.c

index a05e33a107a1c4715597b063b0ba8e89d374e6b0..b113e67fb6fc2dbc994e8bd2fe4b3da2cd3a3f8e 100644 (file)
@@ -312,11 +312,12 @@ int send_instruction(struct ssp_data *data, u8 uInst,
        if (uInst == ADD_SENSOR || uInst == CHANGE_DELAY) {
                unsigned int BatchTimeforReset = 0;
        //current_Ts = get_current_timestamp();
-               if (uLength >= 9)
+               if (uLength >= 9) {
                        BatchTimeforReset = *(unsigned int *)(&uSendBuf[4]);// Add / change normal case, not factory.
        //pr_info("[SSP] %s timeForRest %d", __func__, BatchTimeforReset);
                        data->IsBypassMode[uSensorType] = (BatchTimeforReset == 0);
        //pr_info("[SSP] sensor%d mode%d Time %lld\n", uSensorType, data->IsBypassMode[uSensorType], current_Ts);
+               }
        }
        return iRet;
 }