[PATCH] s390: kernel: remove redundency checking for sysinfo_show() in "sysinfo.c"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The 3 "if (level >=1)" are redundency, only one is enough.

Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx>
---
 arch/s390/kernel/sysinfo.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/s390/kernel/sysinfo.c b/arch/s390/kernel/sysinfo.c
index 811f542..e20336c 100644
--- a/arch/s390/kernel/sysinfo.c
+++ b/arch/s390/kernel/sysinfo.c
@@ -224,12 +224,11 @@ static int sysinfo_show(struct seq_file *m, void *v)
 	if (!info)
 		return 0;
 	level = stsi(NULL, 0, 0, 0);
-	if (level >= 1)
+	if (level >= 1) {
 		stsi_1_1_1(m, info);
-	if (level >= 1)
 		stsi_15_1_x(m, info);
-	if (level >= 1)
 		stsi_1_2_2(m, info);
+	}
 	if (level >= 2)
 		stsi_2_2_2(m, info);
 	if (level >= 3)
-- 
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux