Received: by 2002:a05:7412:9886:b0:f7:18da:975a with SMTP id ji6csp2669861rdb; Tue, 19 Dec 2023 07:36:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IExNjYJ+0M9TB/iKt6fOmqwv8c0O1JEwut0aSh83Bm3o9PIB6g+o52SF6tgSA7KUh+L/hC3 X-Received: by 2002:a2e:9d05:0:b0:2cc:68ff:8ba0 with SMTP id t5-20020a2e9d05000000b002cc68ff8ba0mr1006426lji.101.1703000200150; Tue, 19 Dec 2023 07:36:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703000200; cv=none; d=google.com; s=arc-20160816; b=umYseY4AHf6hkUkrOIEP97u8QXg7gyGz767wmypmBFjpubKZR2DVi/yfvkD1zwH9JE TCKM2RbwnTCANYHXhxND5jLVEphe1rWf8BfTdgOrXxfzRG9lZGlzPPjSwgGt0xMkgJPD tEY7FrJFLK6Kg60yk03lvRhLPGeJBrqesNp/I9Nzkhz9j/mLNEiU/ksCwVWdyniTJNhY Eo/R71Rmns5fxtj+xUv4o1Xzp3VaMeS7LJ6wemhFzTUKccoJ7wxOjXmzzOMJloG4h6bs L1fHW6VMQ1/8Lcy5O6qhnY0QDLZryyWtOH3PDISOG9pacj7R9o9YtfRPbVMQKdtbC6a+ xa0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=qzNCiRbbod5kTHYyIwLXnRVyE1xiT8yVYkVoaL3ZI3c=; fh=oE5SgtwUkA4/zI6xPDMX3jlMeozORx1jFEN36r2d888=; b=vE5gHPV3L/C4PjgIDHMy8uyglN+oP+pCgkfnfA3AenI2OCMIk43ZY4NgvI+w++n/Yg xmh8wZ+KMIzbfeVwuXFCEx4Ry7Lyu3ubgHkE5Fjr44xcc7zyompcPp7LTRprhaiMTS3+ 98PROQ2sXjomGbSKCi/JxL2NrOPXs1eu2R0AwQ7MhmYgOSoIYBSDVHCaLoyGc1xn+OXj YKBZ0mkCmMXlxPxaX77xAgrHH2xijvTBXkKtdU4G/GvUlsr5MY5P9ka+oREI2l3hQYsP r9I/FfIzQry9sn53IMgVXp/XP3Eg837HkAYOH+sonMB6ZI8FIIUnNLZtKuW2exBMJZFB 4coQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=NdSHAllz; spf=pass (google.com: domain of linux-kernel+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y2-20020a50bb02000000b00552dc1dd9cesi3754016ede.654.2023.12.19.07.36.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:36:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=NdSHAllz; spf=pass (google.com: domain of linux-kernel+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5493-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 903E91F2281F for ; Tue, 19 Dec 2023 15:36:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FA0A1CA9D; Tue, 19 Dec 2023 15:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="NdSHAllz" X-Original-To: linux-kernel@vger.kernel.org Received: from mout.web.de (mout.web.de [212.227.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C48C1CA82; Tue, 19 Dec 2023 15:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1703000172; x=1703604972; i=markus.elfring@web.de; bh=behxKfyGna2w4fIuLyZUlD9UgVji5Pzaqh7fdVWijjk=; h=X-UI-Sender-Class:Date:Subject:From:To:Cc:References: In-Reply-To; b=NdSHAllz2ytmZIT0QQCD69MNm4qSxBOrxg96wlionm7kXZr/joZYDH7INPo3N3+g KoXYVYaKuknbstv0fU3v+mfBgQIbyEDDW8swCkjMzoWeb48bJ7eAcDyYH8hujKMD/ 4KHfJM37clRxBi0tVFEGCOe0B4R6aGOLKMVddak03dqlFH8yRJVZ2s6Yf6iI3Ragn iff1isB3nGfvsMf8+j8e4xnPaaZC8Haeb0L84L/w6b6UJ9kRE8eSMoXacv/qcPlrK ZUXxrZf3JaCyIpFJOrE3w5ux5K6GVOvFceRD53KmS4agGP/BMz+ZFWiWwLbAvS7hj Zuwpyown8cwj76WQlw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.85.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MGxQX-1rT2XA40kl-00EGMH; Tue, 19 Dec 2023 16:36:12 +0100 Message-ID: <526df884-8d9f-4fe1-8a32-c98dfff261d7@web.de> Date: Tue, 19 Dec 2023 16:36:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 3/3] kobject: Delete an unnecessary variable initialisation in kobject_uevent_env() Content-Language: en-GB From: Markus Elfring To: kernel-janitors@vger.kernel.org, Andrew Morton , Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: LKML , cocci@inria.fr References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Ty9JQzMTJdBwRgq27eu4X1MYwBgEoqbzGhLFiC0uyypy8ISyY/3 04ttYsnYF4svdZvfzX2e0Q5LP9xnbZXCwWwLPotK0G3FSPKrDvSggC3MSn7WHsRqklFB8u8 Y/zvYhANVJwd/l7F38NBblZ6qZZHqwg+tm+flOv8n6ggTQHf/+98Jhh3Uyg15wdIWKJAzUW rYw7t/s52WNc20JKw5meg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:bn4Ds0KTrg4=;i9ZeJm85eydOOEPORA+V0LPdHbM 5dd4Z4bvbJMQeTztCMzJ5ZOE074edtSA8hze0krNwEGRBPzr+n7FGg/Tsth9nxgoKU8MsGE14 J5nDsA2n3dfOiqBE1I7KRw2+fwFlw/xcL9gIW/k++bHjNgZyOFA0RdXirtX997AEnkhAjFeYd SXwLcOEPBp6sNLWCpSQCIlFluLBFxOizeDNFCfFeWIKtZwtr4b6WjeQZHnusPsfMDN4J93C1T hPznwNJMqkBuXELcjpDLAnvWgd7tnnw3KMRKrkRxwKrjszWHVSokaUSiHqQJjCVUvgQcSOjmi bAjZV81AHAvg00HRxZQ3GsyV1FUd6xJVvaT947/UhMeW9lTEC+n2pi+0Fg1XCoesBWupmbv+c ufUM+YcVv/BaV33Vqd/4pHBwgIDzy+Sf6Vc7yap6TxhB6Lt1Pi28U1NSXDpyLtO+wWCfh5uko is+/2jLi3fD+V22WB7Cy+Dg1UARlflZSBrHjKBjJjmCTstjPKg2TcgH7Y+jtCNj1l4B6s/GKA LpJTVQC0ArOQjl1knDByBuFa6x1/Tw1ui5/gYQfPQXqCvIhYtbL34gHF8Bih8NasXSm3oRtph k23pSlBWO8lte3tTJsUXc0VM+EjjWeQf8BxSxuHqf+UDxEanFGJyHWOcVvExZv+yF450YHJL7 B3b/BhVmj/UTqzC2S02Wh5zciuL96MDNyfgldgzZODcKKWugIZyBXjL3b3XIY9QvuXLh2zmWy 2mHBlMLN9oXP33u0GK62z1SvHEpKOeI9naEUVZ2WDoQD0NS9VzCxEhAZKtrwQiz6sSqZl4Yhy g5hFxtKusafBRxL9/Vn50YH0AEhWBRHTpcCtzLzXHqly5+4Gx7XAu/A8vNpfsJeRBgqShlNm4 r354EUyMvxkjZik6xZzKjBTJea6EEtimOVJYI3rNuCAiS3wIGYp7BA3ZSZObWDhOfHfd14MLI +aTfAw== From: Markus Elfring Date: Tue, 19 Dec 2023 16:03:39 +0100 The local variable =E2=80=9Cdevpath=E2=80=9D will eventually be set to an = appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring =2D-- lib/kobject_uevent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index a9b1bc02f65c..1b7b42dc160c 100644 =2D-- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c @@ -459,7 +459,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobj= ect_action action, { struct kobj_uevent_env *env; const char *action_string =3D kobject_actions[action]; - const char *devpath =3D NULL; + const char *devpath; const char *subsystem; struct kobject *top_kobj; struct kset *kset; =2D- 2.43.0