lkml.org 
[lkml]   [2020]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/5] Cleaning s_uGetDataDuration function
Date
This patch set will eliminate few checkpatch LONG_LINE errors.
Simplify code paths by:
- returning at the end of case body
- removing unnecessary else branches

Matej Dujava (5):
staging: vt6655: merge two switch cases in s_uGetDataDuration
staging: vt6655: do calculation of uAckTime first
staging: vt6655: remove else after return and invert condition
staging: vt6655: return at the ond of case body
staging: vt6655: extract index manupulation out of function call

drivers/staging/vt6655/rxtx.c | 140 ++++++++++++----------------------
1 file changed, 48 insertions(+), 92 deletions(-)

--
2.26.2

\
 
 \ /
  Last update: 2020-05-03 15:30    [W:0.053 / U:0.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site