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)
commitba6856aab1a7edebf1a27c0b6bffaa8a6ea80de7
tree503ea488fa619aeedeb3e5eb673660fcd813681d
parent5b9853ad1329be49343a608d574eb232ff1273d0
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