@@ -219,7 +219,7 @@ static struct tipc_conn *tipc_alloc_conn(struct tipc_server *s)
struct tipc_conn *con;
int ret;
- con = kzalloc(sizeof(struct tipc_conn), GFP_ATOMIC);
+ con = kzalloc(sizeof(*con), GFP_ATOMIC);
if (!con)
return ERR_PTR(-ENOMEM);
@@ -410,7 +410,7 @@ static struct outqueue_entry *tipc_alloc_entry(void *data, int len)
struct outqueue_entry *entry;
void *buf;
- entry = kmalloc(sizeof(struct outqueue_entry), GFP_ATOMIC);
+ entry = kmalloc(sizeof(*entry), GFP_ATOMIC);
if (!entry)
return NULL;