diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-02 14:02:17 -0500 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.co.uk> | 2018-03-19 11:28:56 -0400 |
commit | 2d8236d17586f373e5c2b0d4cefccd4a5bef7a92 (patch) | |
tree | 5bc8474ab169cc74f8a9c9f497121febd14a12fd | |
parent | 80fb8a850ecdcdd515e1ea3d3d97901ff0085e50 (diff) |
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>
-rw-r--r-- | drivers/hsi/clients/ssi_protocol.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c index ac3415b4072c..6dbead863d07 100644 --- a/drivers/hsi/clients/ssi_protocol.c +++ b/drivers/hsi/clients/ssi_protocol.c | |||
@@ -1088,10 +1088,8 @@ static int ssi_protocol_probe(struct device *dev) | |||
1088 | int err; | 1088 | int err; |
1089 | 1089 | ||
1090 | ssi = kzalloc(sizeof(*ssi), GFP_KERNEL); | 1090 | ssi = kzalloc(sizeof(*ssi), GFP_KERNEL); |
1091 | if (!ssi) { | 1091 | if (!ssi) |
1092 | dev_err(dev, "No memory for ssi protocol\n"); | ||
1093 | return -ENOMEM; | 1092 | return -ENOMEM; |
1094 | } | ||
1095 | 1093 | ||
1096 | spin_lock_init(&ssi->lock); | 1094 | spin_lock_init(&ssi->lock); |
1097 | timer_setup(&ssi->rx_wd, ssip_rx_wd, TIMER_DEFERRABLE); | 1095 | timer_setup(&ssi->rx_wd, ssip_rx_wd, TIMER_DEFERRABLE); |