[PATCH] libndctl: Remove redundant checks and assignments