xiaoxiang781216 commented on code in PR #6965:
URL: https://github.com/apache/incubator-nuttx/pull/6965#discussion_r988576186


##########
drivers/mtd/smart.c:
##########
@@ -4500,14 +4500,14 @@ static int smart_validate_crc(FAR struct smart_struct_s 
*dev)
 
   /* Test 16-bit CRC */
 
-  if (crc != *((uint16_t *) header->crc16))
+  if (crc != *((uint16_t *)header->crc16))
     {
       return -EIO;
     }
 
 #elif defined(CONFIG_SMART_CRC_32)
 
-  if (crc != *((uint32_t *) header->crc32))
+  if (crc != *((uint32_t *)header->crc32))

Review Comment:
   Done.



##########
drivers/mtd/smart.c:
##########
@@ -4285,7 +4285,7 @@ static inline int smart_read_wearstatus(FAR struct 
smart_struct_s *dev)
 #if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_SMARTFS)
   /* Get the block erases count */
 
-  dev->blockerases = *((uint32_t *) buffer);
+  dev->blockerases = *((uint32_t *)buffer);

Review Comment:
   Done.



-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

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

Reply via email to