mirror of
https://github.com/pellepl/spiffs.git
synced 2026-07-27 05:57:46 +00:00
Work around for cppcheck warning.
cppcheck warning: Redundant assignment of 'fh' to itself.
This commit is contained in:
@@ -262,8 +262,8 @@
|
||||
#define SPIFFS_FH_OFFS(fs, fh) ((fh) != 0 ? ((fh) + (fs)->cfg.fh_ix_offset) : 0)
|
||||
#define SPIFFS_FH_UNOFFS(fs, fh) ((fh) != 0 ? ((fh) - (fs)->cfg.fh_ix_offset) : 0)
|
||||
#else
|
||||
#define SPIFFS_FH_OFFS(fs, fh) (fh)
|
||||
#define SPIFFS_FH_UNOFFS(fs, fh) (fh)
|
||||
#define SPIFFS_FH_OFFS(fs, fh) ((spiffs_file)(fh))
|
||||
#define SPIFFS_FH_UNOFFS(fs, fh) ((spiffs_file)(fh))
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user