Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp466963imu; Fri, 7 Dec 2018 04:06:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/XoJLI6HkZi2MXh5Fpad3sOb2XZm/aR95KBnUN71s8tcxLsYceNcMyUHdIWAUpqks0aU50K X-Received: by 2002:a62:19d5:: with SMTP id 204mr1988114pfz.33.1544184415882; Fri, 07 Dec 2018 04:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544184415; cv=none; d=google.com; s=arc-20160816; b=EtoXeHIkthR/CRcaeRpqjLTM14Cg9+GPDcx0WZ8+kuuS7KhJxxxFmnR8PUXkCL+rkK pnBNNhfVzklUn0Uw6avZkouxryyuTMsYI5um+kkeAyPyBiAkTfWTxEuTA9Z7KaJCJo/o IiCJNenIpoLF0zJloE0s01UXbHwSHP8vEdmnx8NR9vs5gnHHALDNwC4PMF/tb2m9QxbB AVWQ94evYa+eeiqU0uu17hBaIV1N5ApQMx4dU/M6WDPnuYvGRUc/Pubn56Xrr3JmW4p6 i6NczSI4gQyARqhMDYvvyZ8i1pMyDahtqvG6ib80HtIJARCbhbIyEicHH4RSvHJShYFX PSZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=p3kMKeXNUTQ4AkBahtN4yLEDJxkHjJgilOxb8YmpXdQ=; b=Ph0Uf3nSAT0QIWqqL/DcOST+2rAnDQX2H3/rces2HIwqL6EBdXWODpVQPAvCpwvguD OlaTvYxXKcQFZo4V6vz2xoSBvpsiCI6c3NrM3QuGZE073BmhQnK2m7XmbLtv7QJERhUu hs26NEn7b1EoRPmFO7ErvLwlN1aDzty5bRyAOWeX6dshEjWfNVQbHKu4scZkKq04+mnA wuC3492j8/MZmo4a3tWZhjfnRAjoyHA0Cs0Qdz+VD7wkWZq4NEm0Qlk2VFNSHiUZ2ssG BDcJMbfGvZ9vpevHPBh+lL1mxA8Gr/zncScfCuoQWMvJzmNY9ngExYACbquJFV179UWo k2kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xZp7WelI; 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 i96si2827253plb.188.2018.12.07.04.06.39; Fri, 07 Dec 2018 04:06:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=xZp7WelI; 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 S1726111AbeLGMEI (ORCPT + 99 others); Fri, 7 Dec 2018 07:04:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:56326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbeLGMEI (ORCPT ); Fri, 7 Dec 2018 07:04:08 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A7E6520868; Fri, 7 Dec 2018 12:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544184248; bh=4crPoX0+sOS1/pd25WHPi/c6Th6ra8iqRQPjQvyz+ao=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xZp7WelIcIXlhel4jfZ5ojxgWXny70w0uzsf6V9bRQbZfVLFsLRhuL9hmO2f26Sr4 5VuCz6LtAZhzi8h1BTW+W530XA2RcQRUA4AXKgMVXKxwvARwR3t4FFckqezzsFmhwt D6Gqdzhexf5VOBl4TLWmXWdKhUykCpt2ZqtPzlFA= Date: Fri, 7 Dec 2018 13:04:05 +0100 From: Greg KH To: Bo YU Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, joe@perches.com, yuzibode@126.com Subject: Re: [PATCH v3 2/2] kobject: drop newline from msg string Message-ID: <20181207120405.GC15336@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 07, 2018 at 05:21:49AM -0500, Bo YU wrote: > There is currently a missing terminating newline in non-switch case > match, when msg == NULL. > > Signed-off-by: Bo YU > --- > Changes in v3: > Improve the commit log,requested by rafael. > > Changes in v2: > According to Joe's suggestion,drop newline from msg > > lib/kobject_uevent.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c > index b7c088c902a2..1837765ebf01 100644 > --- a/lib/kobject_uevent.c > +++ b/lib/kobject_uevent.c > @@ -195,12 +195,12 @@ int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count) > enum kobject_action action; > const char *action_args; > struct kobj_uevent_env *env; > - const char *msg = NULL, *devpath; > + const char *msg = NULL; Why did you move the devpath variable from here to lower down? That really doesn't do anything :( thanks, greg k-h