]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: media: atomisp: kmap() can't fail
authorFabian Frederick <fabf@skynet.be>
Fri, 28 Apr 2017 12:10:39 +0000 (13:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 12:27:26 +0000 (14:27 +0200)
commit5b686ccd2ea6351473537ad1baf19252fbbceade
tree650a651358780b369731fc7e2c1cd9a77ac5c69b
parent5795a9a5fed75a729444f9d83fab597ec131d282
staging: media: atomisp: kmap() can't fail

There's no need to check kmap() return value because it won't fail.
If it's highmem mapping, it will receive virtual address
or a new one; if it's lowmem, all kernel pages are already being mapped.

(Thanks to Jan Kara for explanations)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm.c