diff options
| author | 2014-05-16 10:04:43 +0200 | |
|---|---|---|
| committer | 2014-05-16 11:34:31 -0700 | |
| commit | 86c3e3f11e83af86ad3876ecb1f9e98e35851d1b (patch) | |
| tree | dfae6e855a653f1e84e83ac6ac33ad1e78a6c390 | |
| parent | staging: rtl8723au: os_intfs.c: Fixup more u8/uint abuse for error return codes (diff) | |
staging: rtl8723au: usb_intf.c: Fixup yet another round of u8 abuse for error type
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/rtl8723au/os_dep/usb_intf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/rtl8723au/os_dep/usb_intf.c b/drivers/staging/rtl8723au/os_dep/usb_intf.c index 6479c5fbf9a1..97a2bc6102b5 100644 --- a/drivers/staging/rtl8723au/os_dep/usb_intf.c +++ b/drivers/staging/rtl8723au/os_dep/usb_intf.c @@ -99,9 +99,9 @@ static inline int RT_usb_endpoint_num(const struct usb_endpoint_descriptor *epd) return epd->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK; } -static u8 rtw_init_intf_priv(struct dvobj_priv *dvobj) +static int rtw_init_intf_priv(struct dvobj_priv *dvobj) { - u8 rst = _SUCCESS; + int rst = _SUCCESS; mutex_init(&dvobj->usb_vendor_req_mutex); dvobj->usb_alloc_vendor_req_buf = kzalloc(MAX_USB_IO_CTL_SIZE, @@ -117,9 +117,9 @@ exit: return rst; } -static u8 rtw_deinit_intf_priv(struct dvobj_priv *dvobj) +static int rtw_deinit_intf_priv(struct dvobj_priv *dvobj) { - u8 rst = _SUCCESS; + int rst = _SUCCESS; kfree(dvobj->usb_alloc_vendor_req_buf); |
