Re: [PATCH] OMAP MUX framework changes

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

 



Hi Dan,

* Dan Murphy <dmurphy@xxxxxx> [101117 09:58]:
> @@ -81,10 +81,14 @@ void omap_mux_write(struct omap_mux_partition *partition, u16 val,
>  void omap_mux_write_array(struct omap_mux_partition *partition,
>  				 struct omap_board_mux *board_mux)
>  {
> -	while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) {
> -		omap_mux_write(partition, board_mux->value,
> -			       board_mux->reg_offset);
> -		board_mux++;
> +	if (partition) {
> +		while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) {
> +			omap_mux_write(partition, board_mux->value,
> +				       board_mux->reg_offset);
> +			board_mux++;
> +		}
> +	} else {
> +		pr_err("%s: Partition was NULL\n", __func__);
>  	}
>  }
>  

Can you please make this into a separate patch. And instead of
indenting the code more, just do something like:

	if (!partition)
		return -EINVAL;

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux