ASoC: sirf-audio: Remove redundant of_match_node call
authorAditya Pakki <pakki001@umn.edu>
Fri, 22 Mar 2019 22:00:29 +0000 (17:00 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2019 12:11:25 +0000 (12:11 +0000)
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>
sound/soc/codecs/sirf-audio-codec.c

index e424499a8450643f657780ec618d39de0b538892..e0af210500781ba0ec3c1686d0e2f865f653c1f8 100644 (file)
@@ -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);