Skip to content

Commit

Permalink
strparser: remove redundant variable 'rd_desc'
Browse files Browse the repository at this point in the history
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: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YueHaibing authored and davem330 committed Aug 1, 2018
1 parent 1296ee8 commit bd707f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions net/strparser/strparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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);

Expand Down

0 comments on commit bd707f1

Please sign in to comment.