From patchwork Fri Dec 5 05:44:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Joshua I. James" X-Patchwork-Id: 5441831 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A9A00BEEA8 for ; Fri, 5 Dec 2014 05:45:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E6F7120357 for ; Fri, 5 Dec 2014 05:45:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E37B42025A for ; Fri, 5 Dec 2014 05:45:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750920AbaLEFpA (ORCPT ); Fri, 5 Dec 2014 00:45:00 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:58580 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750825AbaLEFo7 (ORCPT ); Fri, 5 Dec 2014 00:44:59 -0500 Received: by mail-pa0-f54.google.com with SMTP id fb1so7784pad.27 for ; Thu, 04 Dec 2014 21:44:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kxnWaMRe9rzXYKhzHQANV1Iry3NZ+msAbb7hie2QmSM=; b=JzcRLsPQLXpK75caFiJQfKvTJ1pNddTAaOj37E7xekHLKjraqFgslDUfsjY4T3djGs lDzz9xRu1PDL0nhhPeK+Iqh/wdSa0TY3TQXjY2LPNzbV2ARGquKYhkK/pOWznsbcrF3r 3I4pa49kv7NpqYWKwODVmGgGVStXG9/OGQc3b1D9YjkK9mN2gx+d98/plaYDoVRu1CAI Osnn6U1ZCIophbV8HepEVUixLD5OvrnLRZpHbLR3PSEgG7uxSXQsupE5W26LebXZINLH jx3lok46tiZlURTEpnSeqFCWZZ6cWhB48Y1hifeDs1VyDe7IlWgcyOXVXFegyE7n0sSq LnmQ== X-Gm-Message-State: ALoCoQmYQlC7oiP2saJWiReFarN0/DKBXt4f9mVfTw5Uiq9qWrh4y2qacO2mS/XdFFS1VNS9AwYw X-Received: by 10.66.139.106 with SMTP id qx10mr25656409pab.138.1417758299033; Thu, 04 Dec 2014 21:44:59 -0800 (PST) Received: from localhost.localdomain ([121.168.23.141]) by mx.google.com with ESMTPSA id xx2sm22631474pab.17.2014.12.04.21.44.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Dec 2014 21:44:57 -0800 (PST) From: "Joshua I. James" X-Google-Original-From: "Joshua I. James" To: linux-crypto@vger.kernel.org Cc: "Joshua I. James" Subject: [PATCH] staging: crypto: fixed style error in ahash.c Date: Fri, 5 Dec 2014 14:44:54 +0900 Message-Id: <1417758294-22850-1-git-send-email-Joshua@cybercrimetech.com> X-Mailer: git-send-email 1.9.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Joshua I. James" Fixed style error identified by checkpatch. WARNING: Missing a blank line after declarations + unsigned int unaligned = alignmask + 1 - (offset & alignmask); + if (nbytes > unaligned) Signed-off-by: Joshua I. James --- crypto/ahash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/ahash.c b/crypto/ahash.c index f6a36a5..dd28906 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -55,6 +55,7 @@ static int hash_walk_next(struct crypto_hash_walk *walk) if (offset & alignmask) { unsigned int unaligned = alignmask + 1 - (offset & alignmask); + if (nbytes > unaligned) nbytes = unaligned; }