diff mbox

[11/11] ndctl: kill unnecessary null check in check_namespaces()

Message ID 20151015210645.22046.79775.stgit@dwillia2-desk3.jf.intel.com (mailing list archive)
State Accepted
Commit 9dedbead263f
Headers show

Commit Message

Dan Williams Oct. 15, 2015, 9:06 p.m. UTC
For a while now check_namespaces() has been called from check_regions(),
so there's no way for regions to be NULL at entry.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 lib/test-libndctl.c |    3 ---
 1 file changed, 3 deletions(-)
diff mbox

Patch

diff --git a/lib/test-libndctl.c b/lib/test-libndctl.c
index a664f0643568..821065993dd7 100644
--- a/lib/test-libndctl.c
+++ b/lib/test-libndctl.c
@@ -774,9 +774,6 @@  static int check_namespaces(struct ndctl_region *region,
 	void *buf = NULL, *__ndns_save;
 	char devname[50];
 
-	if (!region)
-		return -ENXIO;
-
 	if (posix_memalign(&buf, 4096, 4096) != 0)
 		return -ENOMEM;