lkml.org 
[lkml]   [2016]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH net-next] ethernet/atheros/alx: sanitize buffer sizing and padding
From
From: Jarod Wilson <jarod@redhat.com>
Date: Tue, 5 Jan 2016 18:12:34 -0500

> - if ((raw_mtu + 8) < ALX_TXQ1_JUMBO_TSO_TH)
> - val = (raw_mtu + 8 + 7) >> 3;
> + if ((raw_mtu) < ALX_TXQ1_JUMBO_TSO_TH)
> + val = (raw_mtu + 7) >> 3;

The parenthesis around 'raw_mtu' is superfluous, please
remove it.

Otherwise this looks great, please resubmit with that fixed
up.

Thanks.


\
 
 \ /
  Last update: 2016-01-06 07:41    [W:0.087 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site