From patchwork Wed Sep 2 14:14:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Landley X-Patchwork-Id: 7112071 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F2B80BEEC1 for ; Wed, 2 Sep 2015 14:14:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1EDDE2066C for ; Wed, 2 Sep 2015 14:14:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A5F982066F for ; Wed, 2 Sep 2015 14:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbbIBOOk (ORCPT ); Wed, 2 Sep 2015 10:14:40 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:33311 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772AbbIBOOj (ORCPT ); Wed, 2 Sep 2015 10:14:39 -0400 Received: by oixx17 with SMTP id x17so6326695oix.0 for ; Wed, 02 Sep 2015 07:14:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=hbvbJd3q++8Wpj00f0NmGIZb2Y9ewFxEFNvYpXa/hms=; b=BZ41jltPlaBDnhR+sf0Ssj7R5wjYS/6GO7f2DRqaTv3MxxQQGkKn3w11eqeSnqfVic QBAmkSr/06DbFhqibv+CH2YlmB8vmICvwS8Sqq0S5qpiGPoQEcuLcuz1bT85JGmuAqrS AOYgU4mrdeT6+6/TfrrA+/lOfI/zhh2Zy07UwaWiM+y1lmQiZdYHAsSx0QgfHN1fDP1m q8fOUqJy06w6mkKI1tLljRgdfA0vEjnO0NamcIMdgIC3g3GSpdK919Wxg/jm6TJZQ6LS Imy4ME+Sml5tUHIc9ApDu4IZSRMdgPdvp4XwoR6BgtyFcEG9UvDjUG0rWBiDGANPr+A1 +BRA== X-Gm-Message-State: ALoCoQmZXbH8caSVbI8IBH0lIctbAswj+RwAru848cbF3g8J6vxKUncOMpJL+NzI8nuvXNNtkeMd X-Received: by 10.202.75.72 with SMTP id y69mr15547126oia.116.1441203279201; Wed, 02 Sep 2015 07:14:39 -0700 (PDT) Received: from [10.0.2.15] (cpe-72-182-52-210.austin.res.rr.com. [72.182.52.210]) by smtp.googlemail.com with ESMTPSA id k5sm14577479oev.16.2015.09.02.07.14.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Sep 2015 07:14:37 -0700 (PDT) To: Linux-sh list From: Rob Landley Subject: [PATCH] remove open-coded memset. Message-ID: <55E7044C.1050304@landley.net> Date: Wed, 2 Sep 2015 09:14:36 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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: Rob Landley Why is the binflt loader open-coding memset? Signed-off-by: Rob Landley --- arch/sh/include/asm/flat.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sh/include/asm/flat.h b/arch/sh/include/asm/flat.h index 5d84df5..1feb3da 100644 --- a/arch/sh/include/asm/flat.h +++ b/arch/sh/include/asm/flat.h @@ -21,10 +21,6 @@ #define flat_set_persistent(relval, p) ({ (void)p; 0; }) #define FLAT_PLAT_INIT(_r) \ - do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; \ - _r->regs[4]=0; _r->regs[5]=0; _r->regs[6]=0; _r->regs[7]=0; \ - _r->regs[8]=0; _r->regs[9]=0; _r->regs[10]=0; _r->regs[11]=0; \ - _r->regs[12]=0; _r->regs[13]=0; _r->regs[14]=0; \ - _r->sr = SR_FD; } while (0) + do { memset(_r->regs, 0, 15*sizeof(*_r->regs)); _r->sr = SR_FD; } while (0) #endif /* __ASM_SH_FLAT_H */