[PATCH 2/2] drivers/ata: make ata_using_udma return directly and bool

2016-03-24 Thread Yaowei Bai
This patch makes ata_using_udma return bool due to this particular function only using either one or zero as its return value. This patch also makes ata_using_udma return directly by removing if condition. No functional change. Signed-off-by: Yaowei Bai ---

[PATCH 2/2] drivers/ata: make ata_using_udma return directly and bool

2016-03-24 Thread Yaowei Bai
This patch makes ata_using_udma return bool due to this particular function only using either one or zero as its return value. This patch also makes ata_using_udma return directly by removing if condition. No functional change. Signed-off-by: Yaowei Bai --- include/linux/libata.h | 6 ++