data is reset to 0 if is_read is true. No need to use ternary operator before returning. Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx> --- drivers/cbus/cbus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/cbus/cbus.c b/drivers/cbus/cbus.c index 615f447..35f7c71 100644 --- a/drivers/cbus/cbus.c +++ b/drivers/cbus/cbus.c @@ -121,7 +121,7 @@ static int cbus_transfer(struct cbus_host *host, int dev, int reg, int data) spin_unlock_irqrestore(&host->lock, flags); - return is_read ? data : 0; + return data; } /* -- 1.6.6.rc0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html