linuxkpi: Fix style for dma_map_sgtable
Reported by: bz Sponsored by: Beckhoff Automation GmbH & Co. KG
This commit is contained in:
parent
4085bde9fa
commit
72621b543e
@ -361,15 +361,13 @@ dma_map_sgtable(struct device *dev, struct sg_table *sgt,
|
||||
enum dma_data_direction dir,
|
||||
unsigned long attrs)
|
||||
{
|
||||
int nents;
|
||||
|
||||
int nents = dma_map_sg_attrs(dev, sgt->sgl, sgt->nents, dir, attrs);
|
||||
|
||||
if (nents < 0) {
|
||||
return nents;
|
||||
} else {
|
||||
sgt->nents = nents;
|
||||
return 0;
|
||||
}
|
||||
nents = dma_map_sg_attrs(dev, sgt->sgl, sgt->nents, dir, attrs);
|
||||
if (nents < 0)
|
||||
return (nents);
|
||||
sgt->nents = nents;
|
||||
return (0);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
Loading…
Reference in New Issue
Block a user