[openib-general] Re: [PATCH] mthca: fix posting long work request lists

Sean Hefty mshefty at ichips.intel.com
Wed Nov 9 14:48:54 PST 2005


Grant Grundler wrote:
> My preference is to always declare variables in the smallest
> scope possible...it makes maintaining the code easier and lets
> gcc make more efficient use of registers (ie don't allocate stack
> at all if it can be done in registers).

My personal preference is to keep functions small, with all variable 
declarations at the top of the function, where they're easier to locate.  I find 
declarations scattered throughout code makes the code more difficult to maintain.

- Sean



More information about the general mailing list