Re: [PATCH v5 01/15] staging: gpib: Modify gpib_register_driver() to return error if it fails
From: Greg KH
Date: Sun Dec 29 2024 - 05:31:28 EST
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