From d9e15f206840219bb0f39c912a42fdcf8cbcaed6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 27 Nov 2006 16:49:55 +0000 Subject: style cleanup: return(a) -> return a, part 2 --- networking/ifconfig.c | 2 +- networking/ping.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'networking') diff --git a/networking/ifconfig.c b/networking/ifconfig.c index d28ca22..ae5b468 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c @@ -543,6 +543,6 @@ static int in_ether(const char *bufp, struct sockaddr *sap) *ptr++ = val; } while (++i < ETH_ALEN); - return (int) (*bufp); /* Error if we don't end at end of string. */ + return *bufp; /* Error if we don't end at end of string. */ } #endif diff --git a/networking/ping.c b/networking/ping.c index fc01b5e..658c015 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -65,7 +65,7 @@ static int in_cksum(unsigned short *buf, int sz) sum = (sum >> 16) + (sum & 0xFFFF); sum += (sum >> 16); ans = ~sum; - return (ans); + return ans; } #ifndef CONFIG_FEATURE_FANCY_PING -- cgit v1.1