Commit 7a70c15b authored by Kees Cook's avatar Kees Cook
Browse files

kmalloc_obj: Clean up after treewide replacements



Coccinelle doesn't handle re-indenting line escapes. Fix the 2 places
where these got misaligned.

Remove 2 now-redundant type casts, found with:
$ git grep -P 'struct (\S+).*\)\s*k\S+alloc_(objs?|flex)\(struct \1'

Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 69050f8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ dma_fence_chain_contained(struct dma_fence *fence)
 * intentional to enforce typesafety.
 */
#define dma_fence_chain_alloc()	\
		((struct dma_fence_chain *) kmalloc_obj(struct dma_fence_chain, GFP_KERNEL))
		kmalloc_obj(struct dma_fence_chain, GFP_KERNEL)

/**
 * dma_fence_chain_free
+1 −1
Original line number Diff line number Diff line
@@ -460,7 +460,7 @@ int sk_psock_msg_verdict(struct sock *sk, struct sk_psock *psock,
 * intentional to enforce typesafety.
 */
#define sk_psock_init_link()	\
		((struct sk_psock_link *) kzalloc_obj(struct sk_psock_link, GFP_ATOMIC | __GFP_NOWARN))
		kzalloc_obj(struct sk_psock_link, GFP_ATOMIC | __GFP_NOWARN)

static inline void sk_psock_free_link(struct sk_psock_link *link)
{
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.