Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Ruderich
passt-mac
Commits
b4b02b21
Commit
b4b02b21
authored
Apr 15, 2016
by
Simon Ruderich
Browse files
slsm: shorten sizeof by using the variable name
parent
de572298
Changes
1
Hide whitespace changes
Inline
Side-by-side
security/slsm/lsm.c
View file @
b4b02b21
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment