Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1086126ybl; Wed, 14 Aug 2019 10:28:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzILOqEmzoomFS4Qfn9hxJxo3KVbXjCrkwvZCB7QSO5BDRR2CKF97wAFI7QvDzWygGT5BFR X-Received: by 2002:a17:902:9b90:: with SMTP id y16mr527296plp.194.1565803700338; Wed, 14 Aug 2019 10:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565803700; cv=none; d=google.com; s=arc-20160816; b=B0OSk1P91+k9I77Gd/Zt3tYrGHidW1+osiPSh/uXuVcCrtDdc2TuU273SF+gMDgIXD nFn0AQdfjoRdlmUwx0ALQ91Swpi2NeJE/bw8o95Ja3/9YEqv6j4uKdM9DI3hBW4AK380 Ugie6UAfO0ov0lxN8rbqSdFQVNjDwyWd66MVFkoxxKllHYmAdBlllhs6ln2xjqtJWDEi i+yVLzdMXmFltcNN9qcS1Ea0Zz6Sg3G9HHq1XGTZNVkABzyxg+MfISVQg5oPMPt6TEQJ D3jIWG38lY1rto3MaxHOCeTYjI7AcM7aVrCLXZi53igEVNxqd1gype2cVP3IxHrAmDIH Luug== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vF2YXHVHOWaRJqsBL/j5SBjWS9x7WMtYatEOofTCNiI=; b=ZnI/a5BLMCVK2fKV4YELDmTsVddt5LGZl29i7318FhcNrDaheDDo/9L1quzPKK8c/y UdeBQkN1TJVYDQFtOuDd5eYneuVGKpMsGTDlK+1VoHhk0kuSW/LyB4+L/eXM65L7rnqq Ej9WyVBUFgoRgiDxe4bLfCMyX2/sL45l8Ew9lUUw7mvYAlrbMOPJndX7P8bRM9qsFwQd rs4VGKKzBkg9U2lzgpO/+Ew+RwfWz1JvxRud75RuQewahdPlilv/KTF6RCh/+SY/Hyvt T0x3V/hhzjO4oBN2KKYpgIIIU8746MiKR6GrJAu0F9BwaWLTcnYI8zCkjILuwi4HX0Hp JU5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qcf3OPVl; 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 n1si218548pgn.77.2019.08.14.10.28.03; Wed, 14 Aug 2019 10:28:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Qcf3OPVl; 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 S1728988AbfHNRDj (ORCPT + 99 others); Wed, 14 Aug 2019 13:03:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:52292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728420AbfHNRDi (ORCPT ); Wed, 14 Aug 2019 13:03:38 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 1656F214DA; Wed, 14 Aug 2019 17:03:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802217; bh=CoPGPtaIX+GCfu6wF7OH5MxGzuQJ7Y8ZXc/iPospVPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qcf3OPVlCisTP2ilgQmg4eRq9JQkbB+dmtHL2IBtbEiVxNyMbfeiwDn3sRxrl1FX0 4o3jfhdOV/QE+TQSaRfjvWuNb91g0CKy630WWlKHQQJmu5f4FdSXD9Bz1Mj3+MAflA QabmDGdeheijwWKH0NtgZC0QLywonqWwPkczt+dg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Heikki Krogerus Subject: [PATCH 5.2 040/144] usb: typec: ucsi: ccg: Fix uninitilized symbol error Date: Wed, 14 Aug 2019 18:59:56 +0200 Message-Id: <20190814165801.510168506@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heikki Krogerus commit a29d56c2ed24ad33062bfdafdec9e34149715320 upstream. Fix smatch error: drivers/usb/typec/ucsi/ucsi_ccg.c:975 ccg_fw_update() error: uninitialized symbol 'err'. Fixes: 5c9ae5a87573 ("usb: typec: ucsi: ccg: add firmware flashing support") Cc: stable@vger.kernel.org Reported-by: kbuild test robot Signed-off-by: Heikki Krogerus Link: https://lore.kernel.org/r/20190801075512.24354-1-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/typec/ucsi/ucsi_ccg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/typec/ucsi/ucsi_ccg.c +++ b/drivers/usb/typec/ucsi/ucsi_ccg.c @@ -963,7 +963,7 @@ release_fw: ******************************************************************************/ static int ccg_fw_update(struct ucsi_ccg *uc, enum enum_flash_mode flash_mode) { - int err; + int err = 0; while (flash_mode != FLASH_NOT_NEEDED) { err = do_flash(uc, flash_mode);