mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
This commit is contained in:
@@ -950,7 +950,7 @@ int mkfatfs_configfatfs(FAR struct fat_format_s *fmt,
|
||||
{
|
||||
/* There must be reserved sectors in order to have a backup boot sector */
|
||||
|
||||
if (fmt->ff_rsvdseccount > 0 && fmt->ff_rsvdseccount >= 2)
|
||||
if (fmt->ff_rsvdseccount >= 2)
|
||||
{
|
||||
/* Sector 0 is the MBR; 1... ff_rsvdseccount are reserved. Try the next
|
||||
* the last reserved sector.
|
||||
|
||||
Reference in New Issue
Block a user