Re: [PATCH] megaraid: fix error check return value of register_chrdev()

From: Martin K. Petersen
Date: Tue Apr 26 2022 - 09:03:36 EST

> If major equal 0, register_chrdev() returns error code when it fails.
> This function dynamically allocate a major and return its number on
> success, so we should use "< 0" to check it instead of "!".

Applied to 5.19/scsi-staging, thanks!

Martin K. Petersen Oracle Linux Engineering