From 9810446836ab5a4b34a749bb77f3eb5836f982cc Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Sat, 15 Aug 2015 11:30:31 -0400 Subject: [PATCH] ext4: simplify some code in read_mmp_block() My static check complains because we have: if (!*bh) return -ENOMEM; if (*bh) { The second check is unnecessary. I've simplified this code by moving the "if (!*bh)" checks around. Also Andreas Dilger says we should probably print a warning if sb_getblk() fails. [ Restructured the code so that we print a warning message as well if the mmp block doesn't check out, and to print the error code to disambiguate between the error cases. - TYT ] Reviewed-by: Andreas Dilger Signed-off-by: Dan Carpenter Signed-off-by: Theodore Ts'o --- Reading git-format-patch failed