Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fbad7c8 authored by Markus Elfring's avatar Markus Elfring Committed by Sebastian Reichel
Browse files

HSI: omap_ssi: Delete an error message for a failed memory allocation in ssi_add_controller()

The script "checkpatch.pl" pointed information out like the following.

WARNING: Possible unnecessary 'out of memory' message

Thus remove such a statement here.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf


Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 8621e620
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -384,10 +384,8 @@ static int ssi_add_controller(struct hsi_controller *ssi,
	int err;

	omap_ssi = devm_kzalloc(&ssi->device, sizeof(*omap_ssi), GFP_KERNEL);
	if (!omap_ssi) {
		dev_err(&pd->dev, "not enough memory for omap ssi\n");
	if (!omap_ssi)
		return -ENOMEM;
	}

	err = ida_simple_get(&platform_omap_ssi_ida, 0, 0, GFP_KERNEL);
	if (err < 0)