lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAFCwf11xWc3jZ-WFJeBXOPMrq=0AdYSVXbUg_djZ--s6J_KRew@mail.gmail.com>
Date:   Tue, 25 Feb 2020 13:53:46 +0200
From:   Oded Gabbay <oded.gabbay@...il.com>
To:     Tomer Tayar <ttayar@...ana.ai>
Cc:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] habanalabs: Remove unused parse_cnt variable

On Tue, Feb 25, 2020 at 1:24 PM Tomer Tayar <ttayar@...ana.ai> wrote:
>
> The "parse_cnt" variable is incremented while validating the CS chunks,
> but it is actually not being used.
>
> Signed-off-by: Tomer Tayar <ttayar@...ana.ai>
> ---
>  drivers/misc/habanalabs/command_submission.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/misc/habanalabs/command_submission.c b/drivers/misc/habanalabs/command_submission.c
> index 73ef0f9d758a..409276b6374d 100644
> --- a/drivers/misc/habanalabs/command_submission.c
> +++ b/drivers/misc/habanalabs/command_submission.c
> @@ -509,7 +509,7 @@ static int _hl_cs_ioctl(struct hl_fpriv *hpriv, void __user *chunks,
>         struct hl_cb *cb;
>         bool int_queues_only = true;
>         u32 size_to_copy;
> -       int rc, i, parse_cnt;
> +       int rc, i;
>
>         *cs_seq = ULLONG_MAX;
>
> @@ -549,7 +549,7 @@ static int _hl_cs_ioctl(struct hl_fpriv *hpriv, void __user *chunks,
>         hl_debugfs_add_cs(cs);
>
>         /* Validate ALL the CS chunks before submitting the CS */
> -       for (i = 0, parse_cnt = 0 ; i < num_chunks ; i++, parse_cnt++) {
> +       for (i = 0 ; i < num_chunks ; i++) {
>                 struct hl_cs_chunk *chunk = &cs_chunk_array[i];
>                 enum hl_queue_type queue_type;
>                 bool is_kernel_allocated_cb;
> --
> 2.17.1
>

This patch is:
Reviewed-by: Oded Gabbay <oded.gabbay@...il.com>
Applied to -next
Thanks,
Oded

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ