[PATCH v3 4/9] mtd: nand: sharpsl.c: take in account partition parser types

Wolfram Sang wsa at the-dreams.de
Thu Jun 1 01:35:19 PDT 2017


> +					data->types ? data->types : NULL,

This is equal to just 'data_types'.

> +					NULL,
> +					data->partitions ?
> +					data->partitions : NULL,
> +					data->nr_partitions ?
> +					data->nr_partitions : 0);

All the ternary operators are superfluous.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170601/96867942/attachment.sig>


More information about the linux-arm-kernel mailing list