Re: [PATCH 1/2] i2c: core: Remove needless structure member zero initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/12/2015 10:03 PM, Wolfram Sang wrote:
On Wed, Apr 29, 2015 at 03:44:36PM +0300, Jarkko Nikula wrote:
No need to clear one struct i2c_client member variable since memset has
already cleared all of them. Remove also one space intendation from err
label.

Ehrm, why change this now when you remove the code block in the next
patch anyhow? :)

Actually second patch is not removing any other code blocks than memset so my 2 seconds thinking said lets put that client.flags = 0; removal to another patch especially after finding the err label indentation, i.e. spring cleanings first and then the actual patch :-)

Also, the indentation thing is very likely intentional. Sadly, I can't
remember why at this moment, but I remember that when I tried to grep
something I understood why some people put a space in front of labels

Probably it makes code look better in some cases when there are multiple labels but here it didn't look consistent with the rest of the file.

I don't mind squashing this into second patch or keep them separate. I'd like to resend anyway because I noticed s/intendation/indentation/ misspelling in the commit log here.

--
Jarkko
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux