Commit 1873300a authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vinod Koul

dmaengine: consistently return string literal from switch-case

There is no need to have 'break;' statement in the default case followed by
return certain string literal when all other cases have returned the string
literals. So, refactor it accordingly.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200226101842.29426-4-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 5f77dd85
...@@ -1560,9 +1560,7 @@ dmaengine_get_direction_text(enum dma_transfer_direction dir) ...@@ -1560,9 +1560,7 @@ dmaengine_get_direction_text(enum dma_transfer_direction dir)
case DMA_DEV_TO_DEV: case DMA_DEV_TO_DEV:
return "DEV_TO_DEV"; return "DEV_TO_DEV";
default: default:
break; return "invalid";
} }
return "invalid";
} }
#endif /* DMAENGINE_H */ #endif /* DMAENGINE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment