浏览代码

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>
YueHaibing 7 年之前
父节点
当前提交
bd707f17ef
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      net/strparser/strparser.c

+ 0 - 4
net/strparser/strparser.c

@@ -408,8 +408,6 @@ EXPORT_SYMBOL_GPL(strp_data_ready);
 
 
 static void do_strp_work(struct strparser *strp)
 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
 	/* We need the read lock to synchronize with strp_data_ready. We
 	 * need the socket lock for calling strp_read_sock.
 	 * need the socket lock for calling strp_read_sock.
 	 */
 	 */
@@ -421,8 +419,6 @@ static void do_strp_work(struct strparser *strp)
 	if (strp->paused)
 	if (strp->paused)
 		goto out;
 		goto out;
 
 
-	rd_desc.arg.data = strp;
-
 	if (strp_read_sock(strp) == -ENOMEM)
 	if (strp_read_sock(strp) == -ENOMEM)
 		queue_work(strp_wq, &strp->work);
 		queue_work(strp_wq, &strp->work);