You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/02/26 13:59:28 UTC

[GitHub] [mynewt-core] utzig commented on a change in pull request #2499: Fixes for Coverity issues

utzig commented on a change in pull request #2499:
URL: https://github.com/apache/mynewt-core/pull/2499#discussion_r583656395



##########
File path: hw/drivers/sensors/bma253/src/bma253.c
##########
@@ -784,9 +784,7 @@ bma253_get_high_g_int_status(const struct bma253 * bma253,
 
     rc = get_registers((struct bma253 *)bma253, REG_ADDR_INT_STATUS_3,
                        int_status, 4);
-    if (rc != 0) {
-        return rc;
-    }
+

Review comment:
       Just return the result from the function call.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org