From: Masatake YAMATO Date: Fri, 3 Mar 2023 18:17:58 +0000 (+0900) Subject: lsfd: move a local variable to a narrower scope X-Git-Tag: v2.40-rc1~458^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55c857ae098d93599124d2839081a531119f5ff6;p=thirdparty%2Futil-linux.git lsfd: move a local variable to a narrower scope Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-fifo.c b/misc-utils/lsfd-fifo.c index f736192577..aea143c7e5 100644 --- a/misc-utils/lsfd-fifo.c +++ b/misc-utils/lsfd-fifo.c @@ -68,8 +68,8 @@ static bool fifo_fill_column(struct proc *proc __attribute__((__unused__)), case COL_ENDPOINTS: { struct fifo *this = (struct fifo *)file; struct list_head *e; - char *estr; list_for_each_backwardly(e, &this->endpoint.ipc->endpoints) { + char *estr; struct fifo *other = list_entry(e, struct fifo, endpoint.endpoints); if (this == other) continue;