Commit 94018781 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

autofs: Delete alignment in autofs_create_fle()

shmalloc() already returns address with sizeof(unsigned long)
alignment. So, the second alignment is useless.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 70be2395
......@@ -865,10 +865,9 @@ static int autofs_create_fle(struct pstree_item *task, FdinfoEntry *fe,
struct fdinfo_list_entry *le;
struct rst_info *rst_info = rsti(task);
le = shmalloc(sizeof(*le) + sizeof(int));
le = shmalloc(sizeof(*le));
if (!le)
return -1;
le = (void *)ALIGN((long)le, sizeof(int));
fle_init(le, vpid(task), fe);
......
Markdown is supported
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