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

Re: [Xen-devel] [PATCH] xenbackendd: clean variable in loop


Here is the modified patch.

2011/7/14 Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>:
> Roger Pau Monnà writes ("Re: [Xen-devel] [PATCH] xenbackendd: clean variable 
> in loop"):
>> The problem is that console usually comes after vbd, and it executes
>> the block hotplug script with the console device (because 'type' is
>> still set from the previous loop), nothing bad happens, just wanted to
>> get rid of the error message. Since the variable is reused trough the
>> for loop, I think it's best to clean it at the start/end of the loop,
>> this makes the code easier to understand (for me). Where do you
>> exactly suggest to put the initialization?
> I would delete the initialisation (but not the whole declaration) from
> line 155 and add it near line 274. ÂIf this produces a compiler
> warning about possible uninitialised use then we have missed
> something.
> Ian.

Attachment: patch-xenbackendd
Description: Binary data

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.