[10/11] blk-throttle: remove unused variable td in tg_update_has_rules

Message ID 20221123060401.20392-11-shikemeng@huawei.com
State New
Headers
Series A few bugfix and cleanup patches for blk-throttle |

Commit Message

Kemeng Shi Nov. 23, 2022, 6:04 a.m. UTC
  remove unused variable td in tg_update_has_rules

Signed-off-by: Kemeng Shi <shikemeng@huawei.com>
---
 block/blk-throttle.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Tejun Heo Nov. 23, 2022, 6:30 p.m. UTC | #1
On Wed, Nov 23, 2022 at 02:04:00PM +0800, Kemeng Shi wrote:
> remove unused variable td in tg_update_has_rules

Please merge this into the prev patch.
  

Patch

diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 6f509cadd92b..82fe23e79b4b 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -412,7 +412,6 @@  static void throtl_pd_init(struct blkg_policy_data *pd)
 static void tg_update_has_rules(struct throtl_grp *tg)
 {
 	struct throtl_grp *parent_tg = sq_to_tg(tg->service_queue.parent_sq);
-	struct throtl_data *td = tg->td;
 	int rw;
 
 	for (rw = READ; rw <= WRITE; rw++) {