[Intel-gfx] [PATCH v3 04/14] vfio: Provide better generic support for open/release vfio_device_ops
Christoph Hellwig
hch at lst.de
Thu Jul 29 07:26:09 UTC 2021
> + device->open_count++;
> + if (device->open_count == 1 && device->ops->open_device) {
I would have written this as
if (++device->open_count == 1 && device->ops->open_device) {
to make the pattern more clear, but that is just a minor nitpick.
Otherwise looks good:
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the Intel-gfx
mailing list