Re: [PATCH net-next 2/7] net: korina: Use devres functions
From: Andrew Lunn
Date: Wed Apr 14 2021 - 15:38:48 EST
> + if (!p) {
> printk(KERN_ERR DRV_NAME ": cannot remap registers\n");
> - rc = -ENXIO;
> - goto probe_err_out;
> + return -ENOMEM;
> }
Hi Thomas
Another possible cleanup would be replacing printk(KERN_ERR with
dev_err(), or netdev_err() etc.
Andrew