From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XnQOm-0003KU-Mp for barebox@lists.infradead.org; Sun, 09 Nov 2014 11:11:23 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sun, 9 Nov 2014 12:10:32 +0100 Message-Id: <1415531432-6402-2-git-send-email-uwe@kleine-koenig.org> In-Reply-To: <1415531432-6402-1-git-send-email-uwe@kleine-koenig.org> References: <1415531432-6402-1-git-send-email-uwe@kleine-koenig.org> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/2] pci: mvebu: Fix uninitialized variable in mvebu_get_target_attr() To: barebox@lists.infradead.org Cc: Thomas Petazzoni RnJvbTogVGhvbWFzIFBldGF6em9uaSA8dGhvbWFzLnBldGF6em9uaUBmcmVlLWVsZWN0cm9ucy5j b20+CgpUaGlzIGlzIHRoZSBzYW1lIGZpeCB0aGF0IHdhcyBhcHBsaWVkIHRvIHRoZSBMaW51eCBr ZXJuZWwgaW4gY29tbWl0CjU2ZmFiNmUxODk0NCAoUENJOiBtdmVidTogRml4IHVuaW5pdGlhbGl6 ZWQgdmFyaWFibGUgaW4KbXZlYnVfZ2V0X3RndF9hdHRyKCkpLgoKRml4ZXM6IDVhOWJhOTggKCJw Y2k6IG12ZWJ1OiBBZGQgUENJZSBkcml2ZXIiKQpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvD tm5pZyA8dXdlQGtsZWluZS1rb2VuaWcub3JnPgotLS0KQ2M6IFRob21hcyBQZXRhenpvbmkgPHRo b21hcy5wZXRhenpvbmlAZnJlZS1lbG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