summaryrefslogtreecommitdiff
path: root/fs/reiserfs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-05-20 22:43:58 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2024-05-20 22:43:58 +0300
commitd0e71e23ec5e71655e1a046c9be6f35f78b1d6bb (patch)
treea380dcf5972943d69d7e16f68fcc4312027bcc16 /fs/reiserfs
parent5af9d1cf3906171de28f1c395264f29088bdd267 (diff)
downloadlinux-d0e71e23ec5e71655e1a046c9be6f35f78b1d6bb.tar.xz
Revert "fanotify: remove unneeded sub-zero check for unsigned value"
This reverts commit e6595224464b692ddae193d783402130d1625147. These kinds of patches are only making the code worse. Compilers don't care about the unnecessary check, but removing it makes the code less obvious to a human. The declaration of 'len' is more than 80 lines earlier, so a human won't easily see that 'len' is of an unsigned type, so to a human the range check that checks against zero is much more explicit and obvious. Any tool that complains about a range check like this just because the variable is unsigned is actively detrimental, and should be ignored. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs')
0 files changed, 0 insertions, 0 deletions