Re: [PATCH] partitions: dos: Fix support of extended partition type 0x05

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

 



Hallo,

On Wed, Dec 17, 2014 at 05:09:57PM +0100, victorien wrote:
> ---
>  common/partitions/dos.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/common/partitions/dos.c b/common/partitions/dos.c
> index 37addfd..8a3c5c3 100644
> --- a/common/partitions/dos.c
> +++ b/common/partitions/dos.c
> @@ -209,7 +209,7 @@ static void dos_partition(void *buf, struct block_device *blk,
>  			 * here as this is the easiest to parse and common
>  			 * enough.
>  			 */
> -			if (pentry.dos_partition_type == 0x0f) {
> +			if ((pentry.dos_partition_type == 0x0f)||(pentry.dos_partition_type == 0x05)) {
apart from what Sascha said, also add spaces around ||. Also break lines
at or before column 80 (with tabs accounting for 8 columns).

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux