fs: fat: Fix warning in normalize_longname()
authorTom Rini <trini@konsulko.com>
Sun, 30 Sep 2018 14:33:42 +0000 (10:33 -0400)
committerAlexander Graf <agraf@suse.de>
Tue, 16 Oct 2018 14:44:12 +0000 (16:44 +0200)
commit819c80f528f8529bb88d912efb141f5fd0ecef53
tree274386090f7dd27851e0a173a19e8d8c75d7f02d
parent1c3b2f4ae1da02f173315b1fc02b05122c02bd44
fs: fat: Fix warning in normalize_longname()

As observed with clang:
fs/fat/fat_write.c:1024:13: warning: comparison of constant 128
      with expression of type 'char' is always false
      [-Wtautological-constant-out-of-range-compare]
                if ((0x80 <= c) && (c <= 0xff))
                     ~~~~ ^  ~
fs/fat/fat_write.c:1024:25: warning: comparison of constant 255
      with expression of type 'char' is always true
      [-Wtautological-constant-out-of-range-compare]
                if ((0x80 <= c) && (c <= 0xff))
                                    ~ ^  ~~~~

Fixes: 25bb9dab14f4 ("fs: fat: check and normalize file name")
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
fs/fat/fat_write.c