Browse Source

Work around for cppcheck warning.

cppcheck warning: Redundant assignment of 'fh' to itself.
pull/244/head
khalidjmi1200 5 years ago
committed by GitHub
parent
commit
f59d958e0b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/spiffs_nucleus.h

4
src/spiffs_nucleus.h

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

Loading…
Cancel
Save