* [PATCH] staging: r8188eu: core: remove unused function
@ 2021-08-28 15:01 Saurav Girepunje
2021-08-28 16:22 ` Michael Straube
0 siblings, 1 reply; 2+ messages in thread
From: Saurav Girepunje @ 2021-08-28 15:01 UTC (permalink / raw)
To: Larry.Finger, phil, gregkh, straube.linux, fmdefrancesco,
saurav.girepunje, martin, linux-staging
Cc: saurav.girepunje
Remove unused function proc_get_adapter_state() from rtw_debug.c file.
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
drivers/staging/r8188eu/core/rtw_debug.c | 15 ---------------
drivers/staging/r8188eu/include/rtw_debug.h | 4 ----
2 files changed, 19 deletions(-)
diff --git a/drivers/staging/r8188eu/core/rtw_debug.c b/drivers/staging/r8188eu/core/rtw_debug.c
index 2ee64cef73f7..c5bb8b05b3c2 100644
--- a/drivers/staging/r8188eu/core/rtw_debug.c
+++ b/drivers/staging/r8188eu/core/rtw_debug.c
@@ -264,21 +264,6 @@ int proc_get_ap_info(char *page, char **start,
return len;
}
-int proc_get_adapter_state(char *page, char **start,
- off_t offset, int count,
- int *eof, void *data)
-{
- struct net_device *dev = data;
- struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
- int len = 0;
-
- len += snprintf(page + len, count - len, "bSurpriseRemoved=%d, bDriverStopped=%d\n",
- padapter->bSurpriseRemoved, padapter->bDriverStopped);
-
- *eof = 1;
- return len;
-}
-
int proc_get_trx_info(char *page, char **start,
off_t offset, int count,
int *eof, void *data)
diff --git a/drivers/staging/r8188eu/include/rtw_debug.h b/drivers/staging/r8188eu/include/rtw_debug.h
index 3c3bf2a4f30e..9de3a0ed12ba 100644
--- a/drivers/staging/r8188eu/include/rtw_debug.h
+++ b/drivers/staging/r8188eu/include/rtw_debug.h
@@ -112,10 +112,6 @@ int proc_get_ap_info(char *page, char **start,
off_t offset, int count,
int *eof, void *data);
-int proc_get_adapter_state(char *page, char **start,
- off_t offset, int count,
- int *eof, void *data);
-
int proc_get_trx_info(char *page, char **start,
off_t offset, int count,
int *eof, void *data);
--
2.32.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: r8188eu: core: remove unused function
2021-08-28 15:01 [PATCH] staging: r8188eu: core: remove unused function Saurav Girepunje
@ 2021-08-28 16:22 ` Michael Straube
0 siblings, 0 replies; 2+ messages in thread
From: Michael Straube @ 2021-08-28 16:22 UTC (permalink / raw)
To: Saurav Girepunje, Larry.Finger, phil, gregkh, fmdefrancesco,
martin, linux-staging
Cc: saurav.girepunje
On 8/28/21 17:01, Saurav Girepunje wrote:
> Remove unused function proc_get_adapter_state() from rtw_debug.c file.
>
> Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
> ---
> drivers/staging/r8188eu/core/rtw_debug.c | 15 ---------------
> drivers/staging/r8188eu/include/rtw_debug.h | 4 ----
> 2 files changed, 19 deletions(-)
>
> diff --git a/drivers/staging/r8188eu/core/rtw_debug.c b/drivers/staging/r8188eu/core/rtw_debug.c
> index 2ee64cef73f7..c5bb8b05b3c2 100644
> --- a/drivers/staging/r8188eu/core/rtw_debug.c
> +++ b/drivers/staging/r8188eu/core/rtw_debug.c
> @@ -264,21 +264,6 @@ int proc_get_ap_info(char *page, char **start,
> return len;
> }
>
> -int proc_get_adapter_state(char *page, char **start,
> - off_t offset, int count,
> - int *eof, void *data)
> -{
> - struct net_device *dev = data;
> - struct adapter *padapter = (struct adapter *)rtw_netdev_priv(dev);
> - int len = 0;
> -
> - len += snprintf(page + len, count - len, "bSurpriseRemoved=%d, bDriverStopped=%d\n",
> - padapter->bSurpriseRemoved, padapter->bDriverStopped);
> -
> - *eof = 1;
> - return len;
> -}
> -
> int proc_get_trx_info(char *page, char **start,
> off_t offset, int count,
> int *eof, void *data)
> diff --git a/drivers/staging/r8188eu/include/rtw_debug.h b/drivers/staging/r8188eu/include/rtw_debug.h
> index 3c3bf2a4f30e..9de3a0ed12ba 100644
> --- a/drivers/staging/r8188eu/include/rtw_debug.h
> +++ b/drivers/staging/r8188eu/include/rtw_debug.h
> @@ -112,10 +112,6 @@ int proc_get_ap_info(char *page, char **start,
> off_t offset, int count,
> int *eof, void *data);
>
> -int proc_get_adapter_state(char *page, char **start,
> - off_t offset, int count,
> - int *eof, void *data);
> -
> int proc_get_trx_info(char *page, char **start,
> off_t offset, int count,
> int *eof, void *data);
> --
> 2.32.0
>
Looks good to me.
Acked-by: Michael Straube <straube.linux@gmail.com>
Thanks,
Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-28 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-28 15:01 [PATCH] staging: r8188eu: core: remove unused function Saurav Girepunje
2021-08-28 16:22 ` Michael Straube
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox