Commit 1a5692e4 authored by Alex Shi's avatar Alex Shi Committed by Linus Torvalds

ocfs2: remove useless err

We don't need 'err' in these 2 places, better to remove them.
Signed-off-by: default avatarAlex Shi <alex.shi@linux.alibaba.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarJoseph Qi <joseph.qi@linux.alibaba.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Cc: ChenGang <cg.chen@huawei.com>
Cc: Richard Fontana <rfontana@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1579577836-251879-1-git-send-email-alex.shi@linux.alibaba.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 41f4dc83
...@@ -1948,7 +1948,6 @@ static void o2net_accept_many(struct work_struct *work) ...@@ -1948,7 +1948,6 @@ static void o2net_accept_many(struct work_struct *work)
{ {
struct socket *sock = o2net_listen_sock; struct socket *sock = o2net_listen_sock;
int more; int more;
int err;
/* /*
* It is critical to note that due to interrupt moderation * It is critical to note that due to interrupt moderation
...@@ -1963,7 +1962,7 @@ static void o2net_accept_many(struct work_struct *work) ...@@ -1963,7 +1962,7 @@ static void o2net_accept_many(struct work_struct *work)
*/ */
for (;;) { for (;;) {
err = o2net_accept_one(sock, &more); o2net_accept_one(sock, &more);
if (!more) if (!more)
break; break;
cond_resched(); cond_resched();
......
...@@ -676,7 +676,7 @@ static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen, ...@@ -676,7 +676,7 @@ static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen,
int ra_ptr = 0; /* Current index into readahead int ra_ptr = 0; /* Current index into readahead
buffer */ buffer */
int num = 0; int num = 0;
int nblocks, i, err; int nblocks, i;
sb = dir->i_sb; sb = dir->i_sb;
...@@ -708,7 +708,7 @@ static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen, ...@@ -708,7 +708,7 @@ static struct buffer_head *ocfs2_find_entry_el(const char *name, int namelen,
num++; num++;
bh = NULL; bh = NULL;
err = ocfs2_read_dir_block(dir, b++, &bh, ocfs2_read_dir_block(dir, b++, &bh,
OCFS2_BH_READAHEAD); OCFS2_BH_READAHEAD);
bh_use[ra_max] = bh; bh_use[ra_max] = bh;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment