]> asedeno.scripts.mit.edu Git - linux.git/commit
cxl: remove a dead branch
authorMathieu Malaterre <malat@debian.org>
Thu, 22 Mar 2018 21:05:28 +0000 (22:05 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Aug 2018 12:12:36 +0000 (22:12 +1000)
commite4ecafb14fd9cd77d8f4320af1922e700db56d2b
treefca132108014a9a5cb02c1e70b34c3ec1994e0ed
parent2fff0f07b8441a481eb5fc0bfcd0e46d6dbd90db
cxl: remove a dead branch

In commit 14baf4d9c739 ("cxl: Add guest-specific code") the following code
was added:

if (afu->crs_len < 0) {
dev_err(&afu->dev, "Unexpected configuration record size value\n");
return -EINVAL;
}

However the variable `crs_len` is of type u64 and cannot be compared < 0.
Remove the dead code section. Fix the following warning treated as error
with W=1:

../drivers/misc/cxl/guest.c:919:19: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits]

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/guest.c