lkml.org 
[lkml]   [2015]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/3 v3] Staging: rtl8192u: Simplify error check code at prism2_wep_init
From
Date
On Tue, 2015-05-19 at 11:04 +0530, Sudip Mukherjee wrote:
> On Tue, May 19, 2015 at 01:32:22AM +0200, Pedro Marzo Perez wrote:
> > Merge two pr_debug lines with literal strings splitted across several lines
> > into one single line, simplifying prism2_wep_init error check code.
>
> I would have split this patch into three.
> 1) introduce pr_fmt and remove "ieee80211_crypt_wep" from pr_debug
> 2) return NULL instead of that goto fail.
> 3) combine two pr_debug into a single at the fail block.
>
I firmly agree with the "one logical change-one patch" rule but this
seems to me a bit overkilling.Anyway I am a completely newbie sending
kernel patches so you are probably right.
> But Dan can say if its ok. (I am still taking ideas from Dan about my
> patches)
Sure. Dan, we need your wisdom!
>
> regards
> sudip
thanku for your comments sudip!

regards
pedro
> >
> > Signed-off-by: Pedro Marzo Perez <marzo.pedro@gmail.com>




\
 
 \ /
  Last update: 2015-05-19 23:01    [W:0.366 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site