From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::241; helo=mail-lf0-x241.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 9A7832034A874 for ; Thu, 26 Oct 2017 18:10:45 -0700 (PDT) Received: by mail-lf0-x241.google.com with SMTP id p184so5645502lfe.12 for ; Thu, 26 Oct 2017 18:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RRJgYfDtYb8TQZ9IqyWVnPnAW5ONCPT20mwBdE+HwO0=; b=mwOwzIiDnbqAkeCztw9LQW6ox4NDDWtCbtH0ZMt+DsVFkOWLlupJOpxOSbMEHtKqBT aPlUuto1XnOvmwCEmBXo38YiGvtdOetawlRJrIOF7VIZOEd0NvmzPDVk0iqCemMsm63g A4pX8XqwewzCNR3lzxp2m41vsKdKEfFz0lAN1dEvlG0tZc7LQJYA1Bny/VGR1BKi64uW D+QprNX6UOo6v+TGc2hHlK1KCzmfOewkc5f8myuoV7jdOq6wZqqyKepWRC/j9NNmo0h9 0fOwCSM9cmUN9Wob30VU6RlhnEaSHQ2kzl8GRI/taYBzyZsU4xOH1SGy1HBkQR5O05Ht nQXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RRJgYfDtYb8TQZ9IqyWVnPnAW5ONCPT20mwBdE+HwO0=; b=lcje86n6eHseOpk41j1JVnizcotv99euON63HXotVKHGBW52qJZ4s6dUwbt3nuysIo JcLnuEp6/E7bkXvHc+YqOleohn2cDJI9f+eySoYiY7E/PynLLEkjFzKXccU994fROIbu TrDxguvwTwI2rTzNQYFu2cptUtLcaE2biEs9en5lrsodmQYnbZb44FEM2SjFjkM7+ahE KI0GYW2RNwTZiMQPaHqcnTeMI0ZdCZGwu+3quuHCsWI0ASsWG/nAK9/ZXXlPf6xers4T nAVtTXMJnLxb40T036f1LgGigDeA4pVlvCkfghK+qYP4grrXO5qK9kN+foRAWfqdItvW BtIw== X-Gm-Message-State: AMCzsaWcXYnEMk7WIlkjXzbRaTsqNkPr84xpLGnP+jnfntLEGM03nsdw IJ5OVfH5lAmUgNF8A5NmEPOeDq8FBfc= X-Google-Smtp-Source: ABhQp+RIgkInnGiG7I5/qkW4Qrv2QY5t3bmT50RAL2SDHgtnKnGsl9OeVM3uMF0J8WFoPN8Ima5wFg== X-Received: by 10.46.43.69 with SMTP id q66mr9917195lje.104.1509066870457; Thu, 26 Oct 2017 18:14:30 -0700 (PDT) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id m9sm1675702ljb.61.2017.10.26.18.14.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 18:14:29 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, mw@semihalf.com, jsd@semihalf.com Date: Fri, 27 Oct 2017 03:13:44 +0200 Message-Id: <1509066832-5285-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509066832-5285-1-git-send-email-mw@semihalf.com> References: <1509066832-5285-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v2 02/10] Marvell/Drivers: MvI2cDxe: Fix returning status in MvI2cStartRequest X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Oct 2017 01:10:46 -0000 In MvI2cStartRequest the status was assigned to the variable without dereferencing a pointer. Fix it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c b/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c index b4599d2..a62383f 100755 --- a/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c +++ b/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c @@ -627,7 +627,7 @@ MvI2cStartRequest ( } if (I2cStatus != NULL) - I2cStatus = EFI_SUCCESS; + *I2cStatus = EFI_SUCCESS; if (Event != NULL) gBS->SignalEvent(Event); return EFI_SUCCESS; -- 2.7.4