gpu: nvgpu: fix cert-c violation for irq var

irq number read from dt is unsigned type and it is stored in signed
variable(CERT-INIT31-C). So, make irq number as unsigned.

Jira NVGPU-3438

Change-Id: I2afd8686bf2f5405caec62cf94418e4bd009be07
Signed-off-by: Shashank Singh <shashsingh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2115393
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Shashank Singh
2019-05-09 14:30:37 +05:30
committed by mobile promotions
parent 24759e41e8
commit e0a98ff45a
3 changed files with 4 additions and 4 deletions

View File

@@ -633,7 +633,7 @@ static int nvgpu_pci_probe(struct pci_dev *pdev,
g->irq_stall = pdev->irq;
g->irq_nonstall = pdev->irq;
if (g->irq_stall < 0) {
if ((int)g->irq_stall < 0) {
err = -ENXIO;
goto err_disable_msi;
}