Received: by mail.netbsd.org (Postfix, from userid 605) id 49E1814A1D1; Sat, 26 Jan 2013 07:52:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id EB8F514A1CD for ; Sat, 26 Jan 2013 07:52:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id qENUh336p6Mr for ; Sat, 26 Jan 2013 07:52:17 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 744C614A1CA for ; Sat, 26 Jan 2013 07:52:17 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 5FEFE175DD; Sat, 26 Jan 2013 07:52:17 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 26 Jan 2013 07:52:17 +0000 From: "Nick Hudson" Subject: CVS commit: src/sys/dev/usb To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20130126075217.5FEFE175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Nick Hudson" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: skrll Date: Sat Jan 26 07:52:17 UTC 2013 Modified Files: src/sys/dev/usb: if_smsc.c Log Message: Simplify the code by only checking for total_len < pktlen once. The second check was actually wrong - found by matt@ and clang. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/usb/if_smsc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.