vfio: platform: No need to check res again
authorAngus Chen <angus.chen@jaguarmicro.com>
Sat, 7 Jan 2023 03:47:20 +0000 (11:47 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 23 Jan 2023 18:26:28 +0000 (11:26 -0700)
commit7141790b5dd47b229e550148789365a3b2192dd7
treec29245ae8f687c91c76d156ac395e699cd83a591
parentb7f1a141f3cf8bf4927346e5c7259bc218459fe4
vfio: platform: No need to check res again

In function vfio_platform_regions_init(),we did check res implied
by using while loop,
so no need to check whether res be null or not again.

No functional change intended.

Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20230107034721.2127-1-angus.chen@jaguarmicro.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c