[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'

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

2010-07-06 Thread Justin P. Mattock
This is version two of fixing a warning message from 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 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.

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

2010-07-06 Thread Kim Phillips
On Tue, 6 Jul 2010 09:59:38 -0700 Justin P. Mattock justinmatt...@gmail.com wrote: @@ -2035,7 +2034,7 @@ static void hifn_flush(struct hifn_device *dev) spin_lock_irqsave(dev-lock, flags); while ((async_req = crypto_dequeue_request(dev-queue))) { - ctx =

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

2010-07-06 Thread Justin P. Mattock
The below patch gets rid of an unused variable ctx reported by GCC when building the kernel. 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

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

2010-07-06 Thread Justin P. Mattock
On 07/06/2010 11:58 AM, Evgeniy Polyakov wrote: On Tue, Jul 06, 2010 at 11:36:37AM -0700, Justin P. Mattock (justinmatt...@gmail.com) wrote: The below patch gets rid of an unused variable ctx reported by GCC when building the kernel. CC [M] drivers/crypto/hifn_795x.o

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

2010-07-06 Thread Evgeniy Polyakov
On Tue, Jul 06, 2010 at 11:36:37AM -0700, Justin P. Mattock (justinmatt...@gmail.com) wrote: The below patch gets rid of an unused variable ctx reported by GCC when building the kernel. CC [M] drivers/crypto/hifn_795x.o drivers/crypto/hifn_795x.c: In function 'hifn_flush':