staging: wfx: simplify virt_addr_valid call
authorTom Rix <trix@redhat.com>
Sat, 12 Sep 2020 14:47:19 +0000 (07:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 14:28:41 +0000 (16:28 +0200)
commit91bccf883e3cc4f3ab38db61538b68348a3ee9ee
tree8ce57cbc5c83e66066c815b84ea2ab6604581326
parente0a739f48ea33ae939009f2db28091e66024dbf9
staging: wfx: simplify virt_addr_valid call

Reviewing sram_write_dma_safe(), there are two
identical calls to virt_addr_valid().  The second
call can be simplified by a comparison of variables
set from the first call.

Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20200912144719.13929-1-trix@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/fwio.c