projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02d9d3c
)
pata_at91: Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
author
Harman Kalra
<harman4linux@gmail.com>
Wed, 21 Sep 2016 19:48:31 +0000
(
01:18
+0530)
committer
Tejun Heo
<tj@kernel.org>
Thu, 22 Sep 2016 15:48:46 +0000
(11:48 -0400)
Signed-off-by: Harman Kalra <harman4linux@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/pata_at91.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_at91.c
b/drivers/ata/pata_at91.c
index 9f27b14009f9e0f9b34b095b99dfeae76f5d72c4..1611e0e8d767816d86127f007f36818ab8a04434 100644
(file)
--- a/
drivers/ata/pata_at91.c
+++ b/
drivers/ata/pata_at91.c
@@
-347,10
+347,8
@@
static int at91sam9_smc_fields_init(struct device *dev)
field.reg = AT91SAM9_SMC_MODE(AT91SAM9_SMC_GENERIC);
fields.mode = devm_regmap_field_alloc(dev, smc, field);
- if (IS_ERR(fields.mode))
- return PTR_ERR(fields.mode);
- return
0
;
+ return
PTR_ERR_OR_ZERO(fields.mode)
;
}
static int pata_at91_probe(struct platform_device *pdev)