Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932226AbVIXSra (ORCPT ); Sat, 24 Sep 2005 14:47:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932229AbVIXSr3 (ORCPT ); Sat, 24 Sep 2005 14:47:29 -0400 Received: from relay01.mail-hub.dodo.com.au ([203.220.32.149]:6802 "EHLO relay01.mail-hub.dodo.com.au") by vger.kernel.org with ESMTP id S932226AbVIXSr3 (ORCPT ); Sat, 24 Sep 2005 14:47:29 -0400 From: Grant Coady To: Denis Vlasenko Cc: Simon Evans , Vojtech Pavlik , linux-kernel@vger.kernel.org Subject: Re: New inventions in rounding up in catc.c? Date: Sun, 25 Sep 2005 04:46:23 +1000 Organization: http://bugsplatter.mine.nu/ Message-ID: References: <200509241343.42464.vda@ilport.com.ua> In-Reply-To: <200509241343.42464.vda@ilport.com.ua> X-Mailer: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 579 Lines: 18 On Sat, 24 Sep 2005 13:43:42 +0300, Denis Vlasenko wrote: > /* F5U011 only does one packet per RX */ > if (catc->is_f5u011) > break; >- pkt_start += (((pkt_len + 1) >> 6) + 1) << 6; >+ pkt_start += ((pkt_len + 2) + 63) & ~63; pkt_start += ((pkt_len + 1) + 64) & ~63; Seems more clear to me. Grant. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/