Received: by 10.223.164.202 with SMTP id h10csp4247216wrb; Mon, 20 Nov 2017 12:16:28 -0800 (PST) X-Google-Smtp-Source: AGs4zMa53uH52J3vWc+QC1v+++4zjD5fZR6ZYARqp/8Jro3duQFBU/5dwK2GNKHLkcWDOGDzejIU X-Received: by 10.84.248.1 with SMTP id p1mr7832637pll.50.1511208988625; Mon, 20 Nov 2017 12:16:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511208988; cv=none; d=google.com; s=arc-20160816; b=ObpS6eefxcnG0Rb+BsR91WGpkNoYMZThvVGQ3k2ncD5FKq2A4J3jT5aZu501rR7gFX yrcUnWvBxSD4UwEOIQ4IRwttXBJT+O0ipxp0ycimfmr7beML/E6dgEdz7Lx7xejH+GN9 s6R2VIao9dShRfC2BHZNV1UXIbfv+o8b+qtLeJqZuCw8GC6FqA7zY4DKTqcL+m/sXHCj IN/YSXcmKvol3G1GTz00HheSuW/JiyRYeA7JdaLPXOYz4ql/9Dg0USP3bw7U0I+k2t1X B1G7A0AKQ6QChiGOw3J8zed1RXru+Tt0eBtmkvJPbyh3XHcPGKCxpDsNg+PM0VlS5x9i kilQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:reply-to:from:date :message-id:arc-authentication-results; bh=dsNEtYdvhznyvQlIbOAs1UYqFgJGjWPP8jUE5KLv318=; b=X9u53VxXlA+KdxvvjBbiHop1mE0AUrssxIBcLTqyl9wMjjHcOmmm8IUXalPi76Y2Fx EKrwcUtzFC5VysZO9/djT9gEr5MM+GD2VizPdYlKwn1zVlUYysjbEP/aupMIUj5vn6IF dGqZto/gMVizMXW5pOVX7JBs0fqNoZvkNoJOpEFinDCQ4UQMQp0DaayROdgyJuVZnqnE JnQpz+gUAwvK584HurQC1uIswAcM79LGRff7nmntr2QmOQoGGOA+rho1cv3RY73FZL7P Hk8L/sNrLbDkJUZDLhWxxFZM/sVx+qxq2AVegT8iOdBNzNyDdq9pD2ITMcxVCR9dCS+m 9WGA== 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 i8si8855344pgq.66.2017.11.20.12.16.18; Mon, 20 Nov 2017 12:16:28 -0800 (PST) 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 S1752619AbdKTUPf (ORCPT + 67 others); Mon, 20 Nov 2017 15:15:35 -0500 Received: from mx02-sz.bfs.de ([194.94.69.103]:33859 "EHLO mx02-sz.bfs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbdKTUPd (ORCPT ); Mon, 20 Nov 2017 15:15:33 -0500 Received: from localhost (localhost [127.0.0.1]) by mx02-sz.bfs.de (Postfix) with ESMTP id 23C2643F; Mon, 20 Nov 2017 21:15:31 +0100 (CET) X-Virus-Scanned: amavisd-new at bfs.de Received: from mx02-sz.bfs.de ([127.0.0.1]) by localhost (mx02-sz.bfs.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CAS1fobP012F; Mon, 20 Nov 2017 21:15:30 +0100 (CET) Received: from mail-fr.bfs.de (mail-fr.bfs.de [10.177.18.200]) by mx02-sz.bfs.de (Postfix) with ESMTPS; Mon, 20 Nov 2017 21:15:30 +0100 (CET) Received: from [134.92.181.33] (unknown [134.92.181.33]) by mail-fr.bfs.de (Postfix) with ESMTPS id E797DBEE58; Mon, 20 Nov 2017 21:15:29 +0100 (CET) Message-ID: <5A1337DF.2060404@bfs.de> Date: Mon, 20 Nov 2017 21:15:27 +0100 From: walter harms Reply-To: wharms@bfs.de User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11 MIME-Version: 1.0 To: Colin King CC: Johan Hovold , Greg Kroah-Hartman , linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] USB: serial: iuu_phoenix: remove redundant assignment of DIV to itself References: <20171120174015.7191-1-colin.king@canonical.com> In-Reply-To: <20171120174015.7191-1-colin.king@canonical.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 20.11.2017 18:40, schrieb Colin King: > From: Colin Ian King > > The assignment of DIV to itself is redundant and can be removed. > > Signed-off-by: Colin Ian King > --- > drivers/usb/serial/iuu_phoenix.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c > index 397a8012ffa3..62c91e360baf 100644 > --- a/drivers/usb/serial/iuu_phoenix.c > +++ b/drivers/usb/serial/iuu_phoenix.c > @@ -472,7 +472,6 @@ static int iuu_clk(struct usb_serial_port *port, int dwFrq) > } > } > P2 = ((P - PO) / 2) - 4; > - DIV = DIV; > PUMP = 0x04; > PBmsb = (P2 >> 8 & 0x03); > PBlsb = P2 & 0xFF; These all all-upper-case stuff makes me a bit nervous. Normally this is reserved for #define ( I assume that the programmer refers to the original documentation) a point to change ? btw: i noticed int frq = (int)dwFrq; since dwFrq is already an in, the cast is useless. just ym 2 cents, re, wh From 1584607703111798996@xxx Mon Nov 20 17:41:08 +0000 2017 X-GM-THRID: 1584607703111798996 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread