[PATCH] powerpc: initialize drconf variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 04 February 2009 22:18:56 Bernhard Walle wrote:
> * Chandru [2009-02-04 17:16:28]:
> >
> > +	strcpy(fname, "/proc/device-tree/");
> > +	strcat(fname, "ibm,dynamic-reconfiguration-memory/ibm,lmb-size");
> > +	if ((file = fopen(fname, "r")) == NULL) {
> > +		perror(fname);
> > +		return -1;
> > +	}
> > +	if (fread(buf, 1, 8, file) < 0) {
> 
>     fread(buf, 1, 8, file) != 8
> 
> >  	}
> > +	/* first 4 bytes tell the number of lmbs */
> > +	if (fread(buf, 1, 4, file) < 0) {
> 
>     fread(buf, 1, 4, file) != 4 


Thanks for pointing out the correction Bernhard. I will update the patch
and send it again.

Thanks,
Chandru




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux