[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <BN9PR11MB527630B903EC14BC61351C668CD39@BN9PR11MB5276.namprd11.prod.outlook.com>
Date: Mon, 30 Jan 2023 09:05:34 +0000
From: "Tian, Kevin" <kevin.tian@...el.com>
To: Tomasz Duszynski <tduszynski@...vell.com>,
Eric Auger <eric.auger@...hat.com>,
Alex Williamson <alex.williamson@...hat.com>,
Cornelia Huck <cohuck@...hat.com>,
Jason Gunthorpe <jgg@...pe.ca>,
"open list:VFIO PLATFORM DRIVER" <kvm@...r.kernel.org>,
open list <linux-kernel@...r.kernel.org>
CC: "jerinj@...vell.com" <jerinj@...vell.com>
Subject: RE: [PATCH] vfio: platform: ignore missing reset if disabled at
module init
> From: Tomasz Duszynski <tduszynski@...vell.com>
> Sent: Thursday, January 26, 2023 12:11 AM
> @@ -653,7 +653,8 @@ int vfio_platform_init_common(struct
> vfio_platform_device *vdev)
> if (ret && vdev->reset_required)
> dev_err(dev, "No reset function found for device %s\n",
> vdev->name);
> - return ret;
> +
> + return vdev->reset_required ? ret : 0;
> }
> EXPORT_SYMBOL_GPL(vfio_platform_init_common);
It reads slightly better to me as below:
if (ret & vdev->reset_required) {
dev_err(...);
return ret;
}
return 0;
Powered by blists - more mailing lists