nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hartmannat...@apache.org
Subject [incubator-nuttx] branch master updated: drivers/mtd/filemtd.c: fix build error
Date Mon, 11 May 2020 13:25:54 GMT
This is an automated email from the ASF dual-hosted git repository.

hartmannathan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new d666aa6  drivers/mtd/filemtd.c: fix build error
d666aa6 is described below

commit d666aa623f025062f927f26c73fea0f2727509f1
Author: Juha Niskanen <juha.niskanen@haltian.com>
AuthorDate: Mon May 11 14:23:22 2020 +0300

    drivers/mtd/filemtd.c: fix build error
---
 drivers/mtd/filemtd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/filemtd.c b/drivers/mtd/filemtd.c
index 252d50a..9f1b0a3 100644
--- a/drivers/mtd/filemtd.c
+++ b/drivers/mtd/filemtd.c
@@ -506,9 +506,9 @@ FAR struct mtd_dev_s *blockmtd_initialize(FAR const char *path,
       return NULL;
     }
 
-  /* Determine the file open mode */
+  /* Set the file open mode. */
 
-  mode = O_RDOK |= O_WROK;
+  mode = O_RDOK | O_WROK;
 
   /* Try to open the file.  NOTE that block devices will use a character
    * driver proxy.


Mime
View raw message