mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
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;
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user