Mathieu Malaterre e4ecafb14f 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>
2018-08-10 22:12:36 +10:00
..
2018-07-19 14:37:57 +10:00
2018-08-08 00:32:31 +10:00
2018-08-10 22:12:36 +10:00
2016-03-09 23:36:52 +11:00
2017-04-13 23:34:31 +10:00
2018-06-12 16:19:22 -07:00
2018-07-19 14:37:57 +10:00
2018-06-03 20:32:02 +10:00
2015-01-22 17:31:51 +11:00
2017-04-13 23:34:31 +10:00