From patchwork Thu Apr 7 16:48:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zengzhaoxiu@163.com X-Patchwork-Id: 8774901 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 8BC97C0553 for ; Thu, 7 Apr 2016 16:50:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B8E5620222 for ; Thu, 7 Apr 2016 16:50:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AC10A200BE for ; Thu, 7 Apr 2016 16:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756740AbcDGQua (ORCPT ); Thu, 7 Apr 2016 12:50:30 -0400 Received: from m12-16.163.com ([220.181.12.16]:41726 "EHLO m12-16.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756545AbcDGQu3 (ORCPT ); Thu, 7 Apr 2016 12:50:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=f32oy 0d68ih1O+jqc4riMQSZKDm7SuZqDVWFsa2U6mU=; b=KFSzVaNgTTxBFu3hCMH+P ziYy9fn70dDZjGTZ1LdJS9X55hdLEMAj3p4mBsqTFhvmtTdAyk97WyHqKmsDBok2 5b0a2MjnkcBSwvAeDIqSn52WjmzlS/1e1lt1C7pbfVAoiL76cQppvbMZ3oS9FMhR qiU4HJKSfygvkuWVMw1/qo= Received: from fedora.localdomain (unknown [221.136.16.164]) by smtp12 (Coremail) with SMTP id EMCowAAHsKNcjwZXA98fAA--.24956S2; Fri, 08 Apr 2016 00:48:38 +0800 (CST) From: zengzhaoxiu@163.com To: kgene@kernel.org, k.kozlowski@samsung.com, boris.brezillon@free-electrons.com, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Zeng Zhaoxiu Subject: [PATCH] mtd: nand: s3c2410: fix bug in s3c2410_nand_correct_data() Date: Fri, 8 Apr 2016 00:48:17 +0800 Message-Id: <1460047697-72830-1-git-send-email-zengzhaoxiu@163.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 X-CM-TRANSID: EMCowAAHsKNcjwZXA98fAA--.24956S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xr4UCw4UWFy8Cw13WF4xXrb_yoWfJFcE93 W7Xw1xKw4DAr1UX3Z5Jw4avryakF4kW3W8Z3WS9wnxtay0kryxA34DWrZ0vr1DA3y5JF98 CrW2g3sxG3s2qjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUYTKZJUUUUU== X-Originating-IP: [221.136.16.164] X-CM-SenderInfo: p2hqw6xkdr5xrx6rljoofrz/1tbivwdEgFWBRI8PBwAAsr Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, 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: Zeng Zhaoxiu If there is only one bit difference in the ECC, the function should return 1. The result of "diff0 & ~(1<