Message ID | 20211206074754.398117-1-chi.minghao@zte.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fs:remove redundant variable | expand |
diff --git a/fs/file.c b/fs/file.c index 8627dacfc424..97605ef3c390 100644 --- a/fs/file.c +++ b/fs/file.c @@ -265,8 +265,7 @@ static unsigned int count_open_files(struct fdtable *fdt) if (fdt->open_fds[--i]) break; } - i = (i + 1) * BITS_PER_LONG; - return i; + return (i + 1) * BITS_PER_LONG; } static unsigned int sane_fdtable_size(struct fdtable *fdt, unsigned int max_fds)