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:
parent
80fb8a850e
commit
2d8236d175
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user