WSL2-Linux-Kernel/samples/vfio-mdev
Dan Carpenter 698f99ed5e vfio/mdev: remove unnecessary NULL check in mbochs_create()
Originally "type" could be NULL and these checks were required, but we
recently changed how "type" is assigned and that's no longer the case.
Now "type" points to an element in the middle of a non-NULL array.

Removing the checks does not affect runtime at all, but it makes the
code a little bit simpler to read.

Fixes: 3d3a360e57 ("vfio/mbochs: Use mdev_get_type_group_id()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Message-Id: <20210429095327.GY1981@kadam>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2021-05-04 09:56:02 -06:00
..
Makefile
mbochs.c vfio/mdev: remove unnecessary NULL check in mbochs_create() 2021-05-04 09:56:02 -06:00
mdpy-defs.h
mdpy-fb.c
mdpy.c vfio/mdev: remove unnecessary NULL check in mbochs_create() 2021-05-04 09:56:02 -06:00
mtty.c vfio/mdev: Correct the function signatures for the mdev_type_attributes 2021-04-12 10:36:00 -06:00