soc: qcom: remove unused label
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Oct 2017 08:04:28 +0000 (10:04 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Nov 2017 12:24:56 +0000 (13:24 +0100)
The newly added driver comes with a harmless warning:

drivers/soc/qcom/rmtfs_mem.c: In function 'qcom_rmtfs_mem_probe':
drivers/soc/qcom/rmtfs_mem.c:211:1: error: label 'remove_cdev' defined but not used [-Werror=unused-label]

This removes the unused label to avoid the warning.

Fixes: 702baebb8e00 ("soc: qcom: Remote filesystem memory driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/qcom/rmtfs_mem.c

index f6f2f0cb3b3a9b1592ed579a9bb7da9f38bb5392..ce35ff748adfc93c212e1a99e98c53630c86eff6 100644 (file)
@@ -208,8 +208,6 @@ static int qcom_rmtfs_mem_probe(struct platform_device *pdev)
 
        return 0;
 
-remove_cdev:
-       cdev_device_del(&rmtfs_mem->cdev, &rmtfs_mem->dev);
 put_device:
        put_device(&rmtfs_mem->dev);