summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2012-11-20 11:47:25 +0800
committerJason Liu <r64343@freescale.com>2012-11-28 16:57:08 +0800
commit73e61d60c41f69a2061bd7baecc19494580b60d5 (patch)
treeefff5532130f6004e04c42bf88d2df0634c88386 /drivers/net
parentb3ce4ba42511cf4db50c59710a9c4797c3b871a3 (diff)
ENGR00234236 1588: fix kernel build warning
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/fec_1588.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/fec_1588.h b/drivers/net/fec_1588.h
index bd3565ac5194..9daf9de61cda 100644
--- a/drivers/net/fec_1588.h
+++ b/drivers/net/fec_1588.h
@@ -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 */