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 2018/09/24 13:53:34 UTC

[GitHub] kasjer closed pull request #1422: hw/util/i2cn: Remove false positive warning

kasjer closed pull request #1422: hw/util/i2cn: Remove false positive warning
URL: https://github.com/apache/mynewt-core/pull/1422
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/hw/util/i2cn/src/i2cn.c b/hw/util/i2cn/src/i2cn.c
index f6d4234f7c..b5543d0fa4 100644
--- a/hw/util/i2cn/src/i2cn.c
+++ b/hw/util/i2cn/src/i2cn.c
@@ -5,7 +5,7 @@ int
 i2cn_master_read(uint8_t i2c_num, struct hal_i2c_master_data *pdata,
                  uint32_t timeout, uint8_t last_op, int retries)
 {
-    int rc;
+    int rc = 0;
     int i;
 
     /* Ensure at least one try. */
@@ -27,7 +27,7 @@ int
 i2cn_master_write(uint8_t i2c_num, struct hal_i2c_master_data *pdata,
                   uint32_t timeout, uint8_t last_op, int retries)
 {
-    int rc;
+    int rc = 0;
     int i;
 
     /* Ensure at least one try. */


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services