]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mei: mei_hbm_dispatch() returns void
authorPaul Bolle <pebolle@tiscali.nl>
Thu, 6 Feb 2014 21:53:29 +0000 (22:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:55:26 +0000 (13:55 -0800)
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 <pebolle@tiscali.nl>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Cc: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hbm.c

index 5d9e687a866c7377f503326f7ab20d98882f4269..7ba6c4cd026a0ce12d7dd25d687763ed28f638ca 100644 (file)
@@ -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) {