]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: Simplify v4l2_fh_open() error handling
authorHans de Goede <hdegoede@redhat.com>
Mon, 29 Aug 2022 10:37:11 +0000 (12:37 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 08:01:57 +0000 (10:01 +0200)
commit05af86efa375eed597a42b69d9503aac14bfa02c
tree503ea488fa619aeedeb3e5eb673660fcd813681d
parent35bb082b93899e20073217a69cba1d56f5c8c68a
media: atomisp: Simplify v4l2_fh_open() error handling

v4l2_fh_open() can only fail with -ENOMEM and as a generic rule drivers
do not log their own errors for -ENOMEM since the kernel will already
have complained loudly about this before the -ENOMEM return.

Remove the unnecessary error logging from atomisp_open().

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_fops.c