Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.
Subsystems (2)
PATCH 1/1 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.
Signed-off-by Harman Kalra <[email protected]>
--- drivers/ata/pata_at91.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/ata/pata_at91.c +1 -3
@@ -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)
Signature · 1 line
1.7.9.5
Hello.
On 9/21/2016 10:48 PM, Harman Kalra wrote:
Looks like your patch summary and description got merged together in the
subject.
Quoted 1 line
Signed-off-by Harman Kalra <[email protected]>
[...]
MBR, Sergei
Quoted 2 lines · Sergei Shtylyov
Looks like your patch summary and description got merged together in the
subject.
Also, the subject (summary) should contain driver name as a prefix:
"pata_at91: Use ..."
Quoted 2 lines
Quoted 1 line
Signed-off-by Harman Kalra <[email protected]>[...]
MBR, Sergei
Quoted 1 line · Harman Kalra
Signed-off-by Harman Kalra <[email protected]>
Fixed up subject and applied to libata/for-4.9.
Thanks.
Signature · 1 line
tejun