Thanks for the review, Randy. Good comments.Yup - I should have written this line as: Signed-off-by: Paul Jackson <pj@sgi.com> It makes no difference to the code generated. I tend to leave out 'compiler optimization' hint words if I don't need them to get the compiler to optimize. In this case, of a single use file static routine, the compiler inlines anyway. You're right - and Andrew would be right as well, since the form: q = csa = doms = NULL; generates a compiler warning, as not all three pointers are the same type. So three lines of code it must be. Yup - you're right - about the 'csa' check. However the if(q ...) check is needed, because I have another bug here. I allocated 'q' using kfifo_alloc(), so must free using kfifo_free (or else leak the kfifo buffer memory.) Calls to kfifo_free() have to guard against NULL pointers before the call. Thanks, Randy! -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <pj@sgi.com> 1.925.600.0401 -
| Mariusz Kozlowski | [PATCH 12] fs/reiser4/plugin/file/cryptcompress.c: kmalloc + memset conversion to ... |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Eric Paris | Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan... |
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
git: | |
| Aaron Bentley | Re: VCS comparison table |
| Ken Pratt | pack operation is thrashing my server |
| Jonas Fonseca | Re: First cut at git port to Cygwin |
| Ingo Molnar | [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commi... |
| Richard Stallman | Real men don't attack straw men |
| Richard Stallman | Re: Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Predrag Punosevac | Skype on the OpenBSD |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Rick Emerson | Re: [comp.os.linux]: Re: File system issues! |
| Doug Evans | Re: Stabilizing Linux |
| Dong Liu | Re: CXterm for LINUX |
