staging: mt7621-mmc: Modify the return type of the function msdc_do_command
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Sun, 17 Mar 2019 11:01:34 +0000 (16:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:47:53 +0000 (07:47 +0100)
Modify the return type of the function msdc_do_command to static int
as the member error of the structure struct mmc_command is of type int.

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 8857cdb9dafd0ee604323f24ca91b9d07579c590..049b312131a95d4eacaff0378908a55efe59a8f8 100644 (file)
@@ -168,10 +168,10 @@ static u32 hclks[] = {50000000}; /* +/- by chhung */
 #define PHYSADDR(a)             ((a) & 0x1fffffff)
 #endif
 /* end of +++ */
-static unsigned int msdc_do_command(struct msdc_host   *host,
-                                   struct mmc_command *cmd,
-                                   int                 tune,
-                                   unsigned long       timeout);
+static int msdc_do_command(struct msdc_host   *host,
+                          struct mmc_command *cmd,
+                          int                 tune,
+                          unsigned long       timeout);
 
 static int msdc_tune_cmdrsp(struct msdc_host *host, struct mmc_command *cmd);
 
@@ -535,10 +535,10 @@ static unsigned int msdc_command_resp(struct msdc_host   *host,
        return cmd->error;
 }
 
-static unsigned int msdc_do_command(struct msdc_host   *host,
-                                   struct mmc_command *cmd,
-                                   int                 tune,
-                                   unsigned long       timeout)
+static int msdc_do_command(struct msdc_host   *host,
+                          struct mmc_command *cmd,
+                          int                 tune,
+                          unsigned long       timeout)
 {
        if (msdc_command_start(host, cmd, timeout))
                goto end;