mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
24759e41e8
commit
e0a98ff45a
@@ -1362,7 +1362,7 @@ static int gk20a_probe(struct platform_device *dev)
|
||||
|
||||
gk20a->irq_stall = platform_get_irq(dev, 0);
|
||||
gk20a->irq_nonstall = platform_get_irq(dev, 1);
|
||||
if (gk20a->irq_stall < 0 || gk20a->irq_nonstall < 0) {
|
||||
if ((int)gk20a->irq_stall < 0 || (int)gk20a->irq_nonstall < 0) {
|
||||
err = -ENXIO;
|
||||
goto return_err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user