x86/intel_rdt: Remove redundant ternary operator on return
commit5707b46a4206be2068444eb6b514a1ee070651c8
authorColin Ian King <colin.king@canonical.com>
Tue, 8 Aug 2017 09:28:59 +0000 (8 10:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 16 Aug 2017 14:20:55 +0000 (16 16:20 +0200)
treec1e32ce7f4b988552d83635d939e53f8cc739ff4
parent24247aeeabe99eab13b798ccccc2dec066dd6f07
x86/intel_rdt: Remove redundant ternary operator on return

The use of the ternary operator is redundant as ret can never be
non-zero at that point. Instead, just return nbytes.

Detected by CoverityScan, CID#1452658 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: kernel-janitors@vger.kernel.org
Link: http://lkml.kernel.org/r/20170808092859.13021-1-colin.king@canonical.com
arch/x86/kernel/cpu/intel_rdt_rdtgroup.c