mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
media: staging: atomisp: remove redundant OOM error messages
The memory allocation functions (kvzalloc) already emit a stack dump on failure when GFP_KERNEL is used. Printing an extra error message is redundant and increases code size. This resolves the checkpatch warnings: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Zixuan Dong <dbeidachazi@foxmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
c6e115144b
commit
acc483fad7
@@ -2961,11 +2961,8 @@ int atomisp_set_parameters(struct video_device *vdev,
|
||||
* per-frame setting only works for the main output frame.
|
||||
*/
|
||||
param = kvzalloc(sizeof(*param), GFP_KERNEL);
|
||||
if (!param) {
|
||||
dev_err(asd->isp->dev, "%s: failed to alloc params buffer\n",
|
||||
__func__);
|
||||
if (!param)
|
||||
return -ENOMEM;
|
||||
}
|
||||
css_param = ¶m->params;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user