Skip to content

Commit aa3f64a

Browse files
jhovoldgregkh
authored andcommitted
intel_th: rename error label
Use a more a descriptive name for the error label that is used to put the reference to dev. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20251208153524.68637-3-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 95fc36a commit aa3f64a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • drivers/hwtracing/intel_th

drivers/hwtracing/intel_th/core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,14 +815,14 @@ static int intel_th_output_open(struct inode *inode, struct file *file)
815815

816816
if (!dev->driver) {
817817
err = -ENODEV;
818-
goto out_put_device;
818+
goto err_put_dev;
819819
}
820820

821821
thdrv = to_intel_th_driver(dev->driver);
822822
fops = fops_get(thdrv->fops);
823823
if (!fops) {
824824
err = -ENODEV;
825-
goto out_put_device;
825+
goto err_put_dev;
826826
}
827827

828828
replace_fops(file, fops);
@@ -832,12 +832,12 @@ static int intel_th_output_open(struct inode *inode, struct file *file)
832832
if (file->f_op->open) {
833833
err = file->f_op->open(inode, file);
834834
if (err)
835-
goto out_put_device;
835+
goto err_put_dev;
836836
}
837837

838838
return 0;
839839

840-
out_put_device:
840+
err_put_dev:
841841
put_device(dev);
842842

843843
return err;

0 commit comments

Comments
 (0)