From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Yasevich Subject: Re: [PATCH] sctp: remove unnecessary byteshifting, calculate crc in big-endian Date: Thu, 10 Jul 2008 08:43:28 -0400 Message-ID: <487603F0.9070604@hp.com> References: <1215133995.16647.51.camel@brick> <487526B8.70903@hp.com> <1215651704.476.92.camel@brick> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: David Miller , linux-netdev , Andrew Morton To: Harvey Harrison Return-path: Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:49075 "EHLO g5t0008.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753892AbYGJMna (ORCPT ); Thu, 10 Jul 2008 08:43:30 -0400 In-Reply-To: <1215651704.476.92.camel@brick> Sender: netdev-owner@vger.kernel.org List-ID: Harvey Harrison wrote: > On Wed, 2008-07-09 at 16:59 -0400, Vlad Yasevich wrote: >> Harvey Harrison wrote: >>> - __u32 crc32 = 0; >>> + __be32 crc32 = cpu_to_be32(0); >> Does this actually do anything? >> >> Otherwise, good clean-up. Thanks >> > > Keeps sparse happy. Wouldn't just a (__force __be32)0 do the same thing and avoid useless byte swapping on little endian? -vald > > Harvey >