staging: netlogic: Remove unnecessary error print
authorHimadri Pandya <himadri18.07@gmail.com>
Thu, 21 Mar 2019 09:57:17 +0000 (15:27 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Mar 2019 19:08:07 +0000 (20:08 +0100)
commit85b45eadbe6e605d3dae956404c4eb0aa06fe6d3
tree56a996c4718a3d1e86655c339190208188d6ce25
parent4a278a92958dfda6d0954957402338026f55d84a
staging: netlogic: Remove unnecessary error print

Kmalloc normally produces a backtrace when there is not enough memory.
So it is unnecessary to print an error message that provides only this
information. Hence, remove pr_error() from memory allocation check.
Issue found using Coccinelle.

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/netlogic/xlr_net.c