Skip to contentSkip to conversation

pstore/zone: Remove redundant check for total size

PATCH New Zhenguo Zhao 1 participant 1 message Jul 15, 2021 Pstore filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pstore/zone: Remove redundant check for total size

From: Zhenguo Zhao <[email protected]>

The macro check_size contains size check for total size.

---
 fs/pstore/zone.c | 4 ----
 1 file changed, 4 deletions(-)
fs/pstore/zone.c +0 -4
index 7c8f8fe..93a770c 100644
@@ -1295,10 +1295,6 @@ int register_pstore_zone(struct pstore_zone_info *info)
 	int err = -EINVAL;
 	struct psz_context *cxt = &pstore_zone_cxt;
 
-	if (info->total_size < 4096) {
-		pr_warn("total_size must be >= 4096\n");
-		return -EINVAL;
-	}
 	if (info->total_size > SZ_128M) {
 		pr_warn("capping size to 128MiB\n");
 		info->total_size = SZ_128M;
Signature · 1 line
1.9.1