mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
coresight: Use ERR_CAST instead of ERR_PTR
Use ERR_CAT inlined function to replace the ERR_PTR(PTR_ERR). It make the code more concise. Signed-off-by: zhong jiang <[email protected]> Signed-off-by: Mathieu Poirier <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5ecc712019
commit
bbd35ba6fa
1 changed files with 1 additions and 1 deletions
|
|
@ -536,7 +536,7 @@ tmc_init_etr_sg_table(struct device *dev, int node,
|
|||
sg_table = tmc_alloc_sg_table(dev, node, nr_tpages, nr_dpages, pages);
|
||||
if (IS_ERR(sg_table)) {
|
||||
kfree(etr_table);
|
||||
return ERR_PTR(PTR_ERR(sg_table));
|
||||
return ERR_CAST(sg_table);
|
||||
}
|
||||
|
||||
etr_table->sg_table = sg_table;
|
||||
|
|
|
|||
Loading…
Reference in a new issue