|
@@ -1415,8 +1415,7 @@ static int icom_alloc_adapter(struct icom_adapter
|
|
struct icom_adapter *cur_adapter_entry;
|
|
struct icom_adapter *cur_adapter_entry;
|
|
struct list_head *tmp;
|
|
struct list_head *tmp;
|
|
|
|
|
|
- icom_adapter = (struct icom_adapter *)
|
|
|
|
- kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
|
|
|
|
|
|
+ icom_adapter = kzalloc(sizeof(struct icom_adapter), GFP_KERNEL);
|
|
|
|
|
|
if (!icom_adapter) {
|
|
if (!icom_adapter) {
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|