Re: [PATCH v5 01/15] staging: gpib: Modify gpib_register_driver() to return error if it fails

Greg KH
2024-12-29T10:31:21Z

On Sat, Dec 28, 2024 at 11:37:49AM +0530, Nihar Chaithanya wrote:
> The function gpib_register_driver() can fail if kmalloc() fails,
> but it doesn't return any error if that happens.
>
> Modify the function to return error i.e int. Return the appropriate
> error code if it fails.

You forgot to mention that you removed the pr_info() line.

thanks,

greg k-h