Skip to contentSkip to conversation

ufs: remove redundant assignment to pointer p

PATCH New Colin King 1 participant 1 message Jun 13, 2021 Kernel janitors

lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 ufs: remove redundant assignment to pointer p

From: Colin Ian King <[email protected]>

The pointer p is being initialized with a value that is never read before the function returns. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")

---
 fs/ufs/dir.c | 1 -
 1 file changed, 1 deletion(-)
fs/ufs/dir.c +0 -1
index b721d0bda5e5..23cb6c8787f3 100644
@@ -176,7 +176,6 @@ static bool ufs_check_page(struct page *page)
 		   rec_len, ufs_get_de_namlen(sb, p));
 	goto fail;
 Eend:
-	p = (struct ufs_dir_entry *)(kaddr + offs);
 	ufs_error(sb, __func__,
 		   "entry in directory #%lu spans the page boundary"
 		   "offset=%lu",
Signature · 1 line
2.31.1