lkml.org 
[lkml]   [2019]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v6 18/57] i2c: Remove dev_err() usage after platform_get_irq()
> -dev_err(...);

What about pr_err, ...?

> While we're here, remove braces on if statements that only have one
> statement (manually).

You can let cocci do this for you, too. From the top of my head:

if (...)
- {
S
- }

with S being a statement and this rule depending on the matching rule.

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-07-31 16:31    [W:1.402 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site