Re: [RFC PATCH v11 6/9] media: tegra: Add Tegra210 Video input driver

From: Dmitry Osipenko
Date: Thu Apr 30 2020 - 10:25:16 EST


30.04.2020 01:00, Sowjanya Komatineni ÐÐÑÐÑ:
> +int tegra_v4l2_nodes_setup_tpg(struct tegra_video_device *vid)
> +{
> + struct tegra_vi *vi = vid->vi;
> + struct tegra_csi *csi = vid->csi;
> + struct tegra_vi_channel *vi_chan;
> + struct tegra_csi_channel *csi_chan;
> + u32 link_flags = MEDIA_LNK_FL_ENABLED;

> + int ret = 0;

No need to unnecessarily initialize variables. Same for all other
similar occurrences in the code.