From: Chaitanya Kulkarni Date: Sun, 12 May 2019 18:58:15 +0000 (-0700) Subject: nvme-cli: cmbloc code cleanup X-Git-Tag: v1.9~68 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1385f5f7ab516c61a0ce3548777acbff95fc6fd1;p=users%2Fsagi%2Fnvme-cli.git nvme-cli: cmbloc code cleanup This patch removes the unnecessary else condition which is out of format anyway. Signed-off-by: Chaitanya Kulkarni --- diff --git a/nvme-print.c b/nvme-print.c index c038355b..d9512c8e 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -3031,12 +3031,11 @@ static void show_registers_cmbloc(__u32 cmbloc, __u32 cmbsz) { if (cmbsz == 0) { printf("\tController Memory Buffer feature is not supported\n\n"); + return; } - else { - printf("\tOffset (OFST): %x (See cmbsz.szu for granularity)\n", + printf("\tOffset (OFST): %x (See cmbsz.szu for granularity)\n", (cmbloc & 0xfffff000) >> 12); - printf("\tBase Indicator Register (BIR): %x\n\n", cmbloc & 0x00000007 ); - } + printf("\tBase Indicator Register (BIR): %x\n\n", cmbloc & 0x00000007 ); } static const char *nvme_register_szu_to_string(__u8 szu)