Re: [PATCH 3/3] staging: speakup: reuse native hex2bin()

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

 



Andy Shevchenko, le Wed 27 Mar 2013 17:44:57 +0200, a écrit :
>  	int num;

> +			if (*p1 == 'x' && !hex2bin((u8 *)&num, p1 + 1, 1)) {

That, however, won't fly on big-endian. You need to use a u8 temporary
variable and assign it to num afterwards.

Samuel
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel





[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux