Skip to content

Commit a73ec31

Browse files
Javier Martinez Canillasdavem330
authored andcommitted
appletalk: use IS_ENABLED() instead of checking for built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either built-in or as a module, use that macro instead of open coding the same. Using the macro makes the code more readable by helping abstract away some of the Kconfig built-in and module enable details. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 34c1b08 commit a73ec31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/appletalk/ddp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ static int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
12781278
return err;
12791279
}
12801280

1281-
#if defined(CONFIG_IPDDP) || defined(CONFIG_IPDDP_MODULE)
1281+
#if IS_ENABLED(CONFIG_IPDDP)
12821282
static __inline__ int is_ip_over_ddp(struct sk_buff *skb)
12831283
{
12841284
return skb->data[12] == 22;

0 commit comments

Comments
 (0)