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

Commit bd707f17 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

strparser: remove redundant variable 'rd_desc'



Variable 'rd_desc' is being assigned but never used,
so can be removed.

fix this clang warning:
net/strparser/strparser.c:411:20: warning: variable ‘rd_desc’ set but not used [-Wunused-but-set-variable]

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1296ee8f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -408,8 +408,6 @@ EXPORT_SYMBOL_GPL(strp_data_ready);

static void do_strp_work(struct strparser *strp)
{
	read_descriptor_t rd_desc;

	/* We need the read lock to synchronize with strp_data_ready. We
	 * need the socket lock for calling strp_read_sock.
	 */
@@ -421,8 +419,6 @@ static void do_strp_work(struct strparser *strp)
	if (strp->paused)
		goto out;

	rd_desc.arg.data = strp;

	if (strp_read_sock(strp) == -ENOMEM)
		queue_work(strp_wq, &strp->work);