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

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
...@@ -1088,10 +1088,8 @@ static int ssi_protocol_probe(struct device *dev) ...@@ -1088,10 +1088,8 @@ static int ssi_protocol_probe(struct device *dev)
int err; int err;
ssi = kzalloc(sizeof(*ssi), GFP_KERNEL); ssi = kzalloc(sizeof(*ssi), GFP_KERNEL);
if (!ssi) { if (!ssi)
dev_err(dev, "No memory for ssi protocol\n");
return -ENOMEM; return -ENOMEM;
}
spin_lock_init(&ssi->lock); spin_lock_init(&ssi->lock);
timer_setup(&ssi->rx_wd, ssip_rx_wd, TIMER_DEFERRABLE); timer_setup(&ssi->rx_wd, ssip_rx_wd, TIMER_DEFERRABLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment