Skip to content

Commit

Permalink
video: fbdev: omapfb: Fix set but not used warnings in hdmi*_core
Browse files Browse the repository at this point in the history
Fix a few W=1 warnings about unused assignments.
Drop the unused error code.

v2:
  - Subject updated (Lee)

Signed-off-by: Sam Ravnborg <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Qilong Zhang <[email protected]>
Cc: "Alexander A. Klimov" <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Lee Jones <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
sravnborg committed Dec 8, 2020
1 parent e994a1b commit e72ce1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/omap2/omapfb/dss/hdmi4_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
struct hdmi_audio_format audio_format;
struct hdmi_audio_dma audio_dma;
struct hdmi_core_audio_config acore;
int err, n, cts, channel_count;
int n, cts, channel_count;
unsigned int fs_nr;
bool word_length_16b = false;

Expand Down Expand Up @@ -741,7 +741,7 @@ int hdmi4_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
return -EINVAL;
}

err = hdmi_compute_acr(pclk, fs_nr, &n, &cts);
hdmi_compute_acr(pclk, fs_nr, &n, &cts);

/* Audio clock regeneration settings */
acore.n = n;
Expand Down
4 changes: 2 additions & 2 deletions drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
struct hdmi_audio_format audio_format;
struct hdmi_audio_dma audio_dma;
struct hdmi_core_audio_config core_cfg;
int err, n, cts, channel_count;
int n, cts, channel_count;
unsigned int fs_nr;
bool word_length_16b = false;

Expand Down Expand Up @@ -833,7 +833,7 @@ int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp,
return -EINVAL;
}

err = hdmi_compute_acr(pclk, fs_nr, &n, &cts);
hdmi_compute_acr(pclk, fs_nr, &n, &cts);
core_cfg.n = n;
core_cfg.cts = cts;

Expand Down

0 comments on commit e72ce1c

Please sign in to comment.