nitro_enclaves: Fixup type and simplify logic of the poll mask setup
authorAndra Paraschiv <andraprs@amazon.com>
Mon, 2 Nov 2020 17:36:22 +0000 (19:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Nov 2020 17:20:36 +0000 (18:20 +0100)
commitd9109fe0f30a1fba66b8623837fc3d3c1a031090
treee5fdb76421480f9c0f99fa4af63445d17caa7258
parent3ed1cfb2cee4355ddef49489897bfe474daeeaec
nitro_enclaves: Fixup type and simplify logic of the poll mask setup

Update the assigned value of the poll result to be EPOLLHUP instead of
POLLHUP to match the __poll_t type.

While at it, simplify the logic of setting the mask result of the poll
function.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Alexander Graf <graf@amazon.com>
Signed-off-by: Andra Paraschiv <andraprs@amazon.com>
Link: https://lore.kernel.org/r/20201102173622.32169-1-andraprs@amazon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/nitro_enclaves/ne_misc_dev.c