From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Wed, 7 Oct 2015 20:40:54 +0200 Subject: [U-Boot] [PATCH 2/6] video: vesa_fb: Fix wrong return value check of pci_find_class() In-Reply-To: <1443684964-342-3-git-send-email-bmeng.cn@gmail.com> References: <1443684964-342-1-git-send-email-bmeng.cn@gmail.com> <1443684964-342-3-git-send-email-bmeng.cn@gmail.com> Message-ID: <20151007204054.45f0c7ce@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 1 Oct 2015 00:36:00 -0700 Bin Meng wrote: > When pci_find_class() fails to find a device, it returns -ENODEV. > But now we check the return value against -1. Fix it. > > Signed-off-by: Bin Meng > --- > > drivers/video/vesa_fb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Anatolij Gustschin