Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0edde8d authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

atm: clean up vcc_seq_next()



It's confusing to call PTR_ERR(v).  The PTR_ERR() function is basically
a fancy cast to long so it makes you wonder, was IS_ERR() intended?  But
that doesn't make sense because vcc_walk() doesn't return error
pointers.

This patch doesn't affect runtime, it's just a cleanup.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4057765f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -134,7 +134,8 @@ static void vcc_seq_stop(struct seq_file *seq, void *v)
static void *vcc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
{
	v = vcc_walk(seq, 1);
	*pos += !!PTR_ERR(v);
	if (v)
		(*pos)++;
	return v;
}