]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00234236 1588: fix kernel build warning
authorFugang Duan <B38611@freescale.com>
Tue, 20 Nov 2012 03:47:25 +0000 (11:47 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:46 +0000 (08:35 +0200)
Warning: no return statement in function returning non-void.
fec_ptp_ioctl return zero when 1588 is not enable.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/net/fec_1588.h

index bd3565ac5194d909d87358483f45b091aba5fc23..9daf9de61cdaf2f15fe44e018ac31d748d78426e 100644 (file)
@@ -217,7 +217,10 @@ static inline void fec_ptp_store_rxstamp(struct fec_ptp_private *priv,
                                         struct sk_buff *skb,
                                         struct bufdesc *bdp) {}
 static inline int fec_ptp_ioctl(struct fec_ptp_private *priv,
-                               struct ifreq *ifr, int cmd) {}
+                               struct ifreq *ifr, int cmd)
+{
+       return 0;
+}
 
 #endif /* 1588 */