diff options
author | Igor Maravić <igorm@etf.rs> | 2011-12-11 21:58:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-16 15:49:52 -0500 |
commit | 29c36262383d37c6149cf26afd39c3389dd23135 (patch) | |
tree | 57d48430712805644fab9aa52ad41d3792e281e6 /net/x25 | |
parent | a3bf7ae9ae1036636d8900b35a3880e871eceb39 (diff) |
net:x25: use IS_ENABLED
Use IS_ENABLED(CONFIG_FOO)
instead of defined(CONFIG_FOO) || defined (CONFIG_FOO_MODULE)
Signed-off-by: Igor Maravić <igorm@etf.rs>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
-rw-r--r-- | net/x25/af_x25.c | 2 | ||||
-rw-r--r-- | net/x25/x25_dev.c | 6 | ||||
-rw-r--r-- | net/x25/x25_route.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 3e16c6abde4..a306bc66000 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c | |||
@@ -232,7 +232,7 @@ static int x25_device_event(struct notifier_block *this, unsigned long event, | |||
232 | return NOTIFY_DONE; | 232 | return NOTIFY_DONE; |
233 | 233 | ||
234 | if (dev->type == ARPHRD_X25 | 234 | if (dev->type == ARPHRD_X25 |
235 | #if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) | 235 | #if IS_ENABLED(CONFIG_LLC) |
236 | || dev->type == ARPHRD_ETHER | 236 | || dev->type == ARPHRD_ETHER |
237 | #endif | 237 | #endif |
238 | ) { | 238 | ) { |
diff --git a/net/x25/x25_dev.c b/net/x25/x25_dev.c index fa2b41888bd..f0ce862d1f4 100644 --- a/net/x25/x25_dev.c +++ b/net/x25/x25_dev.c | |||
@@ -161,7 +161,7 @@ void x25_establish_link(struct x25_neigh *nb) | |||
161 | *ptr = X25_IFACE_CONNECT; | 161 | *ptr = X25_IFACE_CONNECT; |
162 | break; | 162 | break; |
163 | 163 | ||
164 | #if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) | 164 | #if IS_ENABLED(CONFIG_LLC) |
165 | case ARPHRD_ETHER: | 165 | case ARPHRD_ETHER: |
166 | return; | 166 | return; |
167 | #endif | 167 | #endif |
@@ -180,7 +180,7 @@ void x25_terminate_link(struct x25_neigh *nb) | |||
180 | struct sk_buff *skb; | 180 | struct sk_buff *skb; |
181 | unsigned char *ptr; | 181 | unsigned char *ptr; |
182 | 182 | ||
183 | #if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) | 183 | #if IS_ENABLED(CONFIG_LLC) |
184 | if (nb->dev->type == ARPHRD_ETHER) | 184 | if (nb->dev->type == ARPHRD_ETHER) |
185 | return; | 185 | return; |
186 | #endif | 186 | #endif |
@@ -213,7 +213,7 @@ void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) | |||
213 | *dptr = X25_IFACE_DATA; | 213 | *dptr = X25_IFACE_DATA; |
214 | break; | 214 | break; |
215 | 215 | ||
216 | #if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) | 216 | #if IS_ENABLED(CONFIG_LLC) |
217 | case ARPHRD_ETHER: | 217 | case ARPHRD_ETHER: |
218 | kfree_skb(skb); | 218 | kfree_skb(skb); |
219 | return; | 219 | return; |
diff --git a/net/x25/x25_route.c b/net/x25/x25_route.c index 97d77c532d8..cf636627005 100644 --- a/net/x25/x25_route.c +++ b/net/x25/x25_route.c | |||
@@ -134,7 +134,7 @@ struct net_device *x25_dev_get(char *devname) | |||
134 | 134 | ||
135 | if (dev && | 135 | if (dev && |
136 | (!(dev->flags & IFF_UP) || (dev->type != ARPHRD_X25 | 136 | (!(dev->flags & IFF_UP) || (dev->type != ARPHRD_X25 |
137 | #if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) | 137 | #if IS_ENABLED(CONFIG_LLC) |
138 | && dev->type != ARPHRD_ETHER | 138 | && dev->type != ARPHRD_ETHER |
139 | #endif | 139 | #endif |
140 | ))){ | 140 | ))){ |