lkml.org 
[lkml]   [2015]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging: lustre: remove unused variable
On Mon, May 11, 2015 at 02:31:02PM +0300, Dan Carpenter wrote:
> On Mon, May 11, 2015 at 04:17:10PM +0530, Sudip Mukherjee wrote:
> > - if (set->set_pga) {
> > - int len = set->set_oabufs * sizeof(*set->set_pga);
> > + if (set->set_pga)
> > OBD_FREE_LARGE(set->set_pga, len);
> ^^^
> It's used right here?

oops.. sorry .. but why i didnot get a build failure after this?

ok, got it ...

#define OBD_FREE_LARGE(ptr, size) \
do { \
kvfree(ptr); \
} while (0)

the variable is actually not used. I will make a v2 and send
tomorrow. today is a day of silly mistakes :(

regards
sudip

>
> regards,
> dan carpenter
>


\
 
 \ /
  Last update: 2015-05-11 14:01    [W:0.036 / U:4.124 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site