Re: [PATCH] char: tpm: cr50_i2c: Suppress duplicated error message in .remove()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 26, 2022 at 10:06:02AM +0200, Uwe Kleine-König wrote:
> -		dev_err(dev, "Could not get client data at remove\n");
> -		return -ENODEV;
> +		dev_crit(dev, "Could not get client data at remove, memory corruption ahead\n");
> +		return 0;

Just change the return value 0 and log-level, message can be as it is.

BR, Jarkko



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux