Skip to content

Commit bd707f1

Browse files
YueHaibingdavem330
authored andcommitted
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: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1296ee8 commit bd707f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/strparser/strparser.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,6 @@ EXPORT_SYMBOL_GPL(strp_data_ready);
408408

409409
static void do_strp_work(struct strparser *strp)
410410
{
411-
read_descriptor_t rd_desc;
412-
413411
/* We need the read lock to synchronize with strp_data_ready. We
414412
* need the socket lock for calling strp_read_sock.
415413
*/
@@ -421,8 +419,6 @@ static void do_strp_work(struct strparser *strp)
421419
if (strp->paused)
422420
goto out;
423421

424-
rd_desc.arg.data = strp;
425-
426422
if (strp_read_sock(strp) == -ENOMEM)
427423
queue_work(strp_wq, &strp->work);
428424

0 commit comments

Comments
 (0)