staging:wlan-ng: p80211req_mibset_mibget should be void
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 9 Sep 2012 13:10:57 +0000 (18:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:42:51 +0000 (15:42 -0700)
this function always returning 0, there are no callers that checks
the return of this function, make this function return void

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211req.c

index ccb060142b3a414fcb4323ae4d443f89a5554dda..bafd9358ce5ac4c8d3241862785feaeb84257709 100644 (file)
@@ -73,7 +73,7 @@
 #include "p80211req.h"
 
 static void p80211req_handlemsg(wlandevice_t *wlandev, struct p80211msg *msg);
-static int p80211req_mibset_mibget(wlandevice_t *wlandev,
+static void p80211req_mibset_mibget(wlandevice_t *wlandev,
                                   struct p80211msg_dot11req_mibget *mib_msg,
                                   int isget);
 
@@ -177,7 +177,7 @@ static void p80211req_handlemsg(wlandevice_t *wlandev, struct p80211msg *msg)
        }                       /* switch msg->msgcode */
 }
 
-static int p80211req_mibset_mibget(wlandevice_t *wlandev,
+static void p80211req_mibset_mibget(wlandevice_t *wlandev,
                                   struct p80211msg_dot11req_mibget *mib_msg,
                                   int isget)
 {
@@ -254,9 +254,5 @@ static int p80211req_mibset_mibget(wlandevice_t *wlandev,
                        }
                        break;
                }
-       default:
-               ;
        }
-
-       return 0;
 }