[lkml]   [2017]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: ASoC: da7218: Use common error handling code in da7218_of_to_pdata()
>> Add a jump target so that a bit of exception handling can be better reused
>> in an if branch of this function.

> Hmm. Doesn't really gain an awful lot this.

I show just another small change possibility.

> Would understand if there were multiple return paths,
> but in that case I'd have implemented something like this anyway.


Can the suggested software refactoring become useful also for this
function implementation?

> Also your patch description isn't really correct.

Which wording would you find more appropriate?

> You're re-using code from the sunny day scenario to handle an exception.

Can this detail be better?


 \ /
  Last update: 2017-11-24 13:52    [W:0.046 / U:1.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site