From: David Kershner Date: Wed, 30 Aug 2017 17:36:22 +0000 (-0400) Subject: staging: unisys: visorbus: Remove check for valid parm_addr. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d77e606169efe942f6b2f41d124264df08a25e8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: unisys: visorbus: Remove check for valid parm_addr. The variable parm_addr will never be null, so no need to check for it. Signed-off-by: David Kershner Reviewed-by: Tim Sell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 98c991bb67e5..e5d051f1d5f7 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -1523,7 +1523,7 @@ static int handle_command(struct controlvm_message inmsg, u64 channel_addr) * within our OS-controlled memory. We need to know that, because it * makes a difference in how we compute the virtual address. */ - if (parm_addr && parm_bytes) { + if (parm_bytes) { bool retry = false; parser_ctx =