]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
media: ipu3-cio2: Drop useless assignments
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 Aug 2020 16:07:32 +0000 (18:07 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 10 Sep 2020 12:19:47 +0000 (14:19 +0200)
There are assignments inside the functions which are useless.
Drop them for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2.c

index 867c8e251611e65ba72062311a5dfc01f5a56851..57ccbe0d6503b4eaebe51c5b52dbed83a24478db 100644 (file)
@@ -1976,8 +1976,8 @@ static int __maybe_unused cio2_suspend(struct device *dev)
 static int __maybe_unused cio2_resume(struct device *dev)
 {
        struct cio2_device *cio2 = dev_get_drvdata(dev);
-       int r = 0;
        struct cio2_queue *q = cio2->cur_queue;
+       int r;
 
        dev_dbg(dev, "cio2 resume\n");
        if (!cio2->streaming)
@@ -2004,7 +2004,7 @@ static const struct dev_pm_ops cio2_pm_ops = {
 
 static const struct pci_device_id cio2_pci_id_table[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, CIO2_PCI_ID) },
-       { }
+       { }
 };
 
 MODULE_DEVICE_TABLE(pci, cio2_pci_id_table);