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

Commit 2d8236d1 authored by Markus Elfring's avatar Markus Elfring Committed by Sebastian Reichel
Browse files

HSI: ssi_protocol: Delete an error message for a failed memory allocation in ssi_protocol_probe()



Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 80fb8a85
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1088,10 +1088,8 @@ static int ssi_protocol_probe(struct device *dev)
	int err;

	ssi = kzalloc(sizeof(*ssi), GFP_KERNEL);
	if (!ssi) {
		dev_err(dev, "No memory for ssi protocol\n");
	if (!ssi)
		return -ENOMEM;
	}

	spin_lock_init(&ssi->lock);
	timer_setup(&ssi->rx_wd, ssip_rx_wd, TIMER_DEFERRABLE);