]> git.ipfire.org Git - people/arne_f/kernel.git/commit
misc: mic/scif: fix copy-paste error in scif_create_remote_lookup
authorYueHaibing <yuehaibing@huawei.com>
Wed, 14 Nov 2018 01:57:03 +0000 (01:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 18:42:41 +0000 (19:42 +0100)
commitc4c29e1b347aeea2a8bfd03b6927806d83d8a485
tree6c76a77441b0f84f0e5bb959c0fe44d84139ffdf
parent140ee9b7aec9f11635ff2de2410158af33ce2525
misc: mic/scif: fix copy-paste error in scif_create_remote_lookup

commit 6484a677294aa5d08c0210f2f387ebb9be646115 upstream.

gcc '-Wunused-but-set-variable' warning:

drivers/misc/mic/scif/scif_rma.c: In function 'scif_create_remote_lookup':
drivers/misc/mic/scif/scif_rma.c:373:25: warning:
 variable 'vmalloc_num_pages' set but not used [-Wunused-but-set-variable]

'vmalloc_num_pages' should be used to determine if the address is
within the vmalloc range.

Fixes: ba612aa8b487 ("misc: mic: SCIF memory registration and unregistration")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/scif/scif_rma.c