drivers/mmc/mmc.c: Fix build warning
authorAnatolij Gustschin <agust@denx.de>
Wed, 28 Mar 2012 21:24:32 +0000 (21:24 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 30 Mar 2012 20:14:15 +0000 (22:14 +0200)
Fix:
mmc.c: In function 'mmc_bounce_buffer_start':
mmc.c:132:13: warning: no return statement in function returning
non-void [-Wreturn-type]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Acked-by: Marek Vasut <marex@denx.de>
drivers/mmc/mmc.c

index 74e5fea6671e98081f24594e65646735b7773ee9..e70fa9f8dcc2bb591d536bb3811a2334723b39cb 100644 (file)
@@ -129,7 +129,7 @@ static void mmc_bounce_buffer_stop(struct mmc_data *backup,
 }
 #else
 static inline int mmc_bounce_buffer_start(struct mmc_data *backup,
-                                       struct mmc_data *orig) { }
+                                       struct mmc_data *orig) { return 0; }
 static inline void mmc_bounce_buffer_stop(struct mmc_data *backup,
                                        struct mmc_data *orig) { }
 #endif