lkml.org 
[lkml]   [2018]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tick/broadcast: beautify code for removing redundancy statement
Date
Remove redundant "ret = 0" statment which was previously
initialized to 0.

Signed-off-by: Peng Hao <peng.hao2@zte.com.cn>
---
kernel/time/tick-broadcast.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index aa2094d..311ee7c 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -209,7 +209,6 @@ int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)
* caller initialize the device.
*/
tick_broadcast_clear_oneshot(cpu);
- ret = 0;
break;

case TICKDEV_MODE_PERIODIC:
--
1.8.3.1
\
 
 \ /
  Last update: 2018-12-03 12:24    [W:0.042 / U:20.640 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site