lkml.org 
[lkml]   [2022]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] coda: remove unused variable
Sorry, but I cannot ack this patch.

Clearly there is a lack of clarity in this particular bit of code
because this suggestion seems to reappear every few years,

https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2269222.html

The insize variable is in fact used by the UPARG macro that follows, and
once this patch is applied you end up with an obvious compilation error.

Jan


On Wed, Jun 01, 2022 at 03:58:03PM +0800, Haowen Bai wrote:
> The variable insize is initialized but never used otherwise.
>
> Signed-off-by: Haowen Bai <baihaowen@meizu.com>
> ---
> fs/coda/upcall.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c
> index 59f6cfd06f96..c214b424426d 100644
> --- a/fs/coda/upcall.c
> +++ b/fs/coda/upcall.c
> @@ -477,10 +477,9 @@ int venus_pioctl(struct super_block *sb, struct CodaFid *fid,
> {
> union inputArgs *inp;
> union outputArgs *outp;
> - int insize, outsize, error;
> + int outsize, error;
> int iocsize;
>
> - insize = VC_MAXMSGSIZE;
> UPARG(CODA_IOCTL);
>
> /* build packet for Venus */
> --
> 2.7.4
>
>

\
 
 \ /
  Last update: 2022-06-01 16:36    [W:0.054 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site