[PATCH v2 2/8] scsi: Make use of bus callbacks
Bart Van Assche
bvanassche at acm.org
Fri Dec 19 10:18:29 PST 2025
On 12/19/25 1:25 AM, Uwe Kleine-König wrote:
> +static int scsi_bus_probe(struct device *dev)
> +{
> + struct scsi_device *sdp = to_scsi_device(dev);
> + struct scsi_driver *drv = to_scsi_driver(dev->driver);
> +
> + if (drv->probe)
> + return drv->probe(sdp);
> + else
> + return 0;
> +}
If this series has to be reposted, please leave out the "else" statement
from the above function. It is uncommon in Linux kernel code to have an
"else" statement after a "return" statement.
Thanks,
Bart.
More information about the Linux-mediatek
mailing list