Skip to content

Commit

Permalink
ASoC: sirf-audio: Remove redundant of_match_node call
Browse files Browse the repository at this point in the history
Unlike other drivers probe method, of_match_node return value
is not used or checked. This patch removes the redundant code.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Aditya Pakki authored and Mark Brown committed Mar 25, 2019
1 parent cf88177 commit 78540a2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/codecs/sirf-audio-codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,6 @@ static int sirf_audio_codec_driver_probe(struct platform_device *pdev)
struct sirf_audio_codec *sirf_audio_codec;
void __iomem *base;
struct resource *mem_res;
const struct of_device_id *match;

match = of_match_node(sirf_audio_codec_of_match, pdev->dev.of_node);

sirf_audio_codec = devm_kzalloc(&pdev->dev,
sizeof(struct sirf_audio_codec), GFP_KERNEL);
Expand Down

0 comments on commit 78540a2

Please sign in to comment.