Skip to content

Commit

Permalink
ASoC: fsl_xcvr: Remove unused of_id variable
Browse files Browse the repository at this point in the history
The of_id variable is not used, so just remove it.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20210118123815.1630882-3-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Jan 20, 2021
1 parent d738871 commit 4245017
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sound/soc/fsl/fsl_xcvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1130,16 +1130,11 @@ MODULE_DEVICE_TABLE(of, fsl_xcvr_dt_ids);
static int fsl_xcvr_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
const struct of_device_id *of_id;
struct fsl_xcvr *xcvr;
struct resource *ram_res, *regs_res, *rx_res, *tx_res;
void __iomem *regs;
int ret, irq;

of_id = of_match_device(fsl_xcvr_dt_ids, dev);
if (!of_id)
return -EINVAL;

xcvr = devm_kzalloc(dev, sizeof(*xcvr), GFP_KERNEL);
if (!xcvr)
return -ENOMEM;
Expand Down

0 comments on commit 4245017

Please sign in to comment.