Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2011142imm; Tue, 10 Jul 2018 11:33:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdGsKzoDXJ3LgvXFsI5FJm6slpO0Wb9cfMIEZY24GXl2pA2WufPrFLh1QYrNXwBvmSEpozm X-Received: by 2002:a62:225d:: with SMTP id i90-v6mr8994725pfi.246.1531247606860; Tue, 10 Jul 2018 11:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531247606; cv=none; d=google.com; s=arc-20160816; b=BajHUAXQA9yGWGYvR3c2Eo/1Xwy3BUbleWDO5Op2tUitekXwmwRpQdND0LuGnX8Fab 25k+RE511Tfz1IA09CM7sK3OAburPhSQKb3Qcwj6jUeMYF6CAas3WsVgVaBWt1fHUVK9 8ltTTZE63ylqC2wEOgMrF9V90X/F4/0wZaBg+Er1JA5E4FFppVxWQOxs6LLmM5spxcsI 0AWccpESFuYDJD66lRU0NxA+WPamA8V3FrYQNvuoCSrN7qd67t6DwOdZpIfUF0ZDXkZa BM/nS0x0F4eNCc6yfcfXcsrWx7fPfSwasYgBP0U5bqc+JJeS51TnE0moIzfScHr3A2/9 UU4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=C9PVHCnjHjVxuaes1gcCscFKgFnNtyS7qc4Cd7uARBw=; b=HR0rue8Jq3GINw8XaSaoQ3GBNs3AREXvUOs0pH40rpfre79OWOFS/53kSPIM0txDaX /FL9D8TcCjn/HfXLrzZSfoZt8BeSEgBX87vJLR7ZGyKhIz8FCyY7os1UyTnEzCaQ/Fcr XoyRcVj1YxItbF8LcoSgZiA/9uOq1ML3oNirZRusg1Yl/SsGR9XhGdzn7V5beIeVyWeL NDu9uTxa8ZWPl/FPz/Ui39h1EQ3jtzbYpTedFHqrGEZAWvo1ARLFl85IIux9ru69ZWU9 SRLg+urrc/p3nMW3m085JB90eKzZJSIySdzIFzteyQbG+O+gW3grGUHk78NdvuIhC6rt URzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a24-v6si15977249pgv.527.2018.07.10.11.33.11; Tue, 10 Jul 2018 11:33:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388394AbeGJSbd (ORCPT + 99 others); Tue, 10 Jul 2018 14:31:33 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45852 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732481AbeGJSbc (ORCPT ); Tue, 10 Jul 2018 14:31:32 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 81AEEEC2; Tue, 10 Jul 2018 18:31:20 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Ian Abbott Subject: [PATCH 4.9 52/52] staging: comedi: quatech_daqp_cs: fix no-op loop daqp_ao_insn_write() Date: Tue, 10 Jul 2018 20:25:20 +0200 Message-Id: <20180710182454.122783954@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180710182449.285532226@linuxfoundation.org> References: <20180710182449.285532226@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter commit 1376b0a2160319125c3a2822e8c09bd283cd8141 upstream. There is a '>' vs '<' typo so this loop is a no-op. Fixes: d35dcc89fc93 ("staging: comedi: quatech_daqp_cs: fix daqp_ao_insn_write()") Signed-off-by: Dan Carpenter Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c +++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c @@ -642,7 +642,7 @@ static int daqp_ao_insn_write(struct com /* Make sure D/A update mode is direct update */ outb(0, dev->iobase + DAQP_AUX_REG); - for (i = 0; i > insn->n; i++) { + for (i = 0; i < insn->n; i++) { unsigned int val = data[i]; int ret;