From: Randy Dunlap <rdunlap@infradead.org>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev
Cc: forest@alittletooquiet.net, linux-kernel@vger.kernel.org,
Joe Perches <joe@perches.com>
Subject: Re: [PATCH] staging: vt665X: remove unused CONFIG_PATH
Date: Thu, 29 Jul 2021 07:51:11 -0700 [thread overview]
Message-ID: <68f85669-71a8-b0c9-d23f-0dc7e1de2f12@infradead.org> (raw)
In-Reply-To: <20210729095812.1693061-1-gregkh@linuxfoundation.org>
On 7/29/21 2:58 AM, Greg Kroah-Hartman wrote:
> The vt6655 and vt6656 drivers have an unused CONFIG_PATH define floating
> around in the code, but it is never used. Remove it as drivers should
> never be reading from config files anyway, even if these were valid
> files.
>
> Reported-by: Joe Perches <joe@perches.com>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.
> ---
> drivers/staging/vt6655/device_cfg.h | 3 ---
> drivers/staging/vt6656/device.h | 2 --
> 2 files changed, 5 deletions(-)
>
> diff --git a/drivers/staging/vt6655/device_cfg.h b/drivers/staging/vt6655/device_cfg.h
> index db0304f6e21c..2d647a3619ba 100644
> --- a/drivers/staging/vt6655/device_cfg.h
> +++ b/drivers/staging/vt6655/device_cfg.h
> @@ -38,9 +38,6 @@
>
> #include <linux/fs.h>
> #include <linux/fcntl.h>
> -#ifndef CONFIG_PATH
> -#define CONFIG_PATH "/etc/vntconfiguration.dat"
> -#endif
>
> #define PKT_BUF_SZ 2390
>
> diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h
> index 947530fefe94..2c93a2e66c8a 100644
> --- a/drivers/staging/vt6656/device.h
> +++ b/drivers/staging/vt6656/device.h
> @@ -77,8 +77,6 @@
> #define FIRMWARE_NAME "vntwusb.fw"
> #define FIRMWARE_CHUNK_SIZE 0x400
>
> -#define CONFIG_PATH "/etc/vntconfiguration.dat"
> -
> #define MAX_UINTS 8
> #define OPTION_DEFAULT { [0 ... MAX_UINTS - 1] = -1}
>
>
--
~Randy
prev parent reply other threads:[~2021-07-29 14:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-29 9:58 [PATCH] staging: vt665X: remove unused CONFIG_PATH Greg Kroah-Hartman
2021-07-29 14:51 ` Randy Dunlap [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=68f85669-71a8-b0c9-d23f-0dc7e1de2f12@infradead.org \
--to=rdunlap@infradead.org \
--cc=forest@alittletooquiet.net \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).