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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
Markus Elfring 2018-02-02 20:02:17 +01:00 committed by Sebastian Reichel
parent 80fb8a850e
commit 2d8236d175
1 changed files with 1 additions and 3 deletions

View File

@ -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);