diff options
| -rw-r--r-- | drivers/tty/serial/icom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c index bc9e6b017b05..18ed5aebb166 100644 --- a/drivers/tty/serial/icom.c +++ b/drivers/tty/serial/icom.c | |||
| @@ -1415,8 +1415,7 @@ static int icom_alloc_adapter(struct icom_adapter | |||
| 1415 | struct icom_adapter *cur_adapter_entry; | 1415 | struct icom_adapter *cur_adapter_entry; |
| 1416 | struct list_head *tmp; | 1416 | struct list_head *tmp; |
| 1417 | 1417 | ||
| 1418 | icom_adapter = (struct icom_adapter *) | 1418 | icom_adapter = kzalloc(sizeof(struct icom_adapter), GFP_KERNEL); |
| 1419 | kzalloc(sizeof(struct icom_adapter), GFP_KERNEL); | ||
| 1420 | 1419 | ||
| 1421 | if (!icom_adapter) { | 1420 | if (!icom_adapter) { |
| 1422 | return -ENOMEM; | 1421 | return -ENOMEM; |
