[PATCH]crypto:hifn_795x.c Fix warning: variable 'ctx' set but not used

2010-07-06 Thread Justin P. Mattock
The below fixes a warning message generated by GCC CC [M] drivers/crypto/hifn_795x.o drivers/crypto/hifn_795x.c: In function 'hifn_flush': drivers/crypto/hifn_795x.c:2021:23: warning: variable 'ctx' set but not used drivers/crypto/hifn_795x.c: In function 'hifn_process_queue':

Re: [PATCH]crypto:hifn_795x.c Fix warning: variable 'ctx' set but not used

2010-07-06 Thread Herbert Xu
Justin P. Mattock justinmatt...@gmail.com wrote: The below fixes a warning message generated by GCC CC [M] drivers/crypto/hifn_795x.o drivers/crypto/hifn_795x.c: In function 'hifn_flush': drivers/crypto/hifn_795x.c:2021:23: warning: variable 'ctx' set but not used

Re: [PATCH]crypto:hifn_795x.c Fix warning: variable 'ctx' set but not used

2010-07-06 Thread Justin P. Mattock
On 07/06/2010 12:03 AM, Herbert Xu wrote: Justin P. Mattockjustinmatt...@gmail.com wrote: The below fixes a warning message generated by GCC CC [M] drivers/crypto/hifn_795x.o drivers/crypto/hifn_795x.c: In function 'hifn_flush': drivers/crypto/hifn_795x.c:2021:23: warning: variable 'ctx'

Re: [PATCH]crypto:hifn_795x.c Fix warning: variable 'ctx' set but not used

2010-07-06 Thread Justin P. Mattock
This certainly does not look right! Returning with IRQs disabled is considered to be rude. I believe the right answer is to delete the line initialising ctx. Thanks, o.k. hopefully this is correct this time, resent with the following change. let me know if it's legit or not.. Justin P.