misc: lis3lv02d: Do not log an error when kmalloc fails
authorHans de Goede <hdegoede@redhat.com>
Wed, 17 Feb 2021 10:25:01 +0000 (11:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Mar 2021 07:26:29 +0000 (08:26 +0100)
commit2278f0c385d88a3898d0e977d6e80e5d3d3d6020
tree422377956400885e64987d02200d6536ede96baf
parentbb6886bf1e2bf49627a1c4ac5e615cfe518c827f
misc: lis3lv02d: Do not log an error when kmalloc fails

Logging an error when kmalloc fails is not necessary (and in general
should be avoided) because the malloc failure will already complain
loudly itself.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210217102501.31758-3-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lis3lv02d/lis3lv02d.c