From 13f048657763363335d585ec5ffc1212df77bc97 Mon Sep 17 00:00:00 2001 From: Paul Bolle Date: Thu, 6 Feb 2014 22:53:29 +0100 Subject: mei: mei_hbm_dispatch() returns void Building hbm.o for v3.13.2 triggers a GCC warning: drivers/misc/mei/hbm.c: In function 'mei_hbm_dispatch': drivers/misc/mei/hbm.c:596:3: warning: 'return' with a value, in function returning void [enabled by default] return 0; ^ GCC is correct, obviously. So let's return void instead of zero here. Signed-off-by: Paul Bolle Acked-by: Tomas Winkler Cc: Alexander Usyskin Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index 98f9561..8d39a12 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c @@ -593,7 +593,7 @@ void mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) */ if (dev->hbm_state == MEI_HBM_IDLE) { dev_dbg(&dev->pdev->dev, "hbm: state is idle ignore spurious messages\n"); - return 0; + return; } switch (mei_msg->hbm_cmd) { -- cgit v0.10.2