Commit b4b02b21 authored by Simon Ruderich's avatar Simon Ruderich
Browse files

slsm: shorten sizeof by using the variable name

parent de572298
......@@ -31,7 +31,7 @@ struct passt_task {
* Returns the new passt_task or NULL if there's no memory available
static struct passt_task *passt_dup_task(const struct passt_task *old_pt, gfp_t gfp) {
struct passt_task *pt = kmemdup(old_pt, sizeof(struct passt_task), gfp);
struct passt_task *pt = kmemdup(old_pt, sizeof(*pt), gfp);
if (!pt)
return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment