@@ -419,10 +419,8 @@ static int tegra_gart_probe(struct platform_device *pdev)
}
gart = devm_kzalloc(dev, sizeof(*gart), GFP_KERNEL);
- if (!gart) {
- dev_err(dev, "failed to allocate gart_device\n");
+ if (!gart)
return -ENOMEM;
- }
gart_regs = devm_ioremap(dev, res->start, resource_size(res));
if (!gart_regs) {
@@ -455,10 +453,8 @@ static int tegra_gart_probe(struct platform_device *pdev)
gart->page_count = (resource_size(res_remap) >> GART_PAGE_SHIFT);
gart->savedata = vmalloc(sizeof(u32) * gart->page_count);
- if (!gart->savedata) {
- dev_err(dev, "failed to allocate context save area\n");
+ if (!gart->savedata)
return -ENOMEM;
- }
platform_set_drvdata(pdev, gart);
do_gart_setup(gart, NULL);