]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: gpib: hp_82335: Return error value from gpib_register_driver()
authorNihar Chaithanya <niharchaithanya@gmail.com>
Mon, 30 Dec 2024 18:56:29 +0000 (00:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 7 Jan 2025 14:38:55 +0000 (15:38 +0100)
commit4e12a0928978451f92f6c10f71ef251a082acb3f
tree10cda557ecf472372ac564f8758947c9e6d7f886
parent908ff8d49e725c6b29aa9fc2dbfd10fa87223492
staging: gpib: hp_82335: Return error value from gpib_register_driver()

The function gpib_register_driver() can fail and does not return an
error value if it fails.

Return the error value if gpib_register_driver() fails. Add pr_err()
statement indicating the fail and also the error value.

Signed-off-by: Nihar Chaithanya <niharchaithanya@gmail.com>
Link: https://lore.kernel.org/r/20241230185633.175690-10-niharchaithanya@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/hp_82335/hp82335.c