lkml.org 
[lkml]   [2020]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 1/3] scsi: ufs: remove max_t in ufs_get_device_desc
From
Date
On Thu, 2020-05-28 at 07:56 -0700, Bart Van Assche wrote:
> > - buff_len = max_t(size_t, hba->desc_size.dev_desc,
> > - QUERY_DESC_MAX_SIZE + 1);
> > + buff_len = QUERY_DESC_MAX_SIZE + 1;
> > desc_buf = kmalloc(buff_len, GFP_KERNEL);
> > if (!desc_buf) {
> > err = -ENOMEM;
>
> Since the buff_len variable is not changed after its initial
> assignment,
> please remove it entirely.
>
> Thanks,
>
> Bart.

hi, Bart

Thanks.

do you mean like this: buff_len = hba->desc_size[id]?

Bean


\
 
 \ /
  Last update: 2020-05-28 17:05    [W:0.103 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site