Skip to contentSkip to conversation

Clean up unused loop variable

PATCH New Andrew Price 2 participants 2 messages Jan 13, 2008 – Jan 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Clean up unused loop variable

Reading through the gfs2_edit code I noticed that a variable is initialised and incremented in this for loop but is not used inside the loop and the final value of the variable is not used subsequently. This patch removes the initialisation and increment of the variable.

--
Andy Price

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup_loop_var.diff
Type: text/x-diff
Size: 754 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20080113/a3671b91/attachment.bin>

#1 lore raw

PATCH 1/1 Clean up unused loop variable

Quoted 7 lines · Andrew Price

Reading through the gfs2_edit code I noticed that a variable is initialised and incremented in this for loop but is not used inside the loop and the final value of the variable is not used subsequently. This patch removes the initialisation and increment of the variable.

--
Andy Price

Hi Andy,

Thanks for your help. I've applied your patch to the HEAD branch of CVS. I'll try to work it into the RHEL5 branch when I have to update that next. I think RHEL5 needs a bugzilla record, so that one may not get done for a little while.

Regards,

Bob Peterson
Red Hat GFS