Skip to contentSkip to conversation

fs: remove unused struct fs_device_d::parent_device

PATCH Applied Ahmad Fatoum 4 participants 5 messages Sep 13, 2021 – Oct 4, 2021 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: remove unused struct fs_device_d::parent_device

The parent_device member is unused anywhere, so drop it.

---
 fs/fs.c      | 1 -
 include/fs.h | 1 -
 2 files changed, 2 deletions(-)
fs/fs.c +0 -1
index b6431227d60c..e6fd57b8ac97 100644
@@ -813,7 +813,6 @@ int fsdev_open_cdev(struct fs_device_d *fsdev)
 	}
 
 	fsdev->dev.parent = fsdev->cdev->dev;
-	fsdev->parent_device = fsdev->cdev->dev;
 
 	return 0;
 }
include/fs.h +0 -1
index 5811199c0161..cd5eb571e08e 100644
@@ -101,7 +101,6 @@ struct fs_device_d {
 	struct cdev *cdev;
 	bool loop;
 	char *path;
-	struct device_d *parent_device;
 	struct list_head list;
 	char *options;
 	char *linux_rootarg;
Signature · 7 lines
2.33.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 1 line · Ahmad Fatoum

The parent_device member is unused anywhere, so drop it.

s/is/isn't/?

Quoted 40 lines
---
 fs/fs.c      | 1 -
 include/fs.h | 1 -
 2 files changed, 2 deletions(-)
fs/fs.c +0 -1
index b6431227d60c..e6fd57b8ac97 100644
@@ -813,7 +813,6 @@ int fsdev_open_cdev(struct fs_device_d *fsdev)
 	}
 
 	fsdev->dev.parent = fsdev->cdev->dev;
-	fsdev->parent_device = fsdev->cdev->dev;
 
 	return 0;
 }
include/fs.h +0 -1
index 5811199c0161..cd5eb571e08e 100644
@@ -101,7 +101,6 @@ struct fs_device_d {
 	struct cdev *cdev;
 	bool loop;
 	char *path;
-	struct device_d *parent_device;
 	struct list_head list;
 	char *options;
 	char *linux_rootarg;
Signature · 7 lines
2.33.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Roland Hieber, Pengutronix e.K.          | [email protected]     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
Quoted 4 lines · Roland Hieber
Quoted 1 line · Ahmad Fatoum

The parent_device member is unused anywhere, so drop it.

s/is/isn't/?

is unused == isn't used..?

Quoted 42 lines
Quoted 41 lines
---
 fs/fs.c      | 1 -
 include/fs.h | 1 -
 2 files changed, 2 deletions(-)
fs/fs.c +0 -1
index b6431227d60c..e6fd57b8ac97 100644
@@ -813,7 +813,6 @@ int fsdev_open_cdev(struct fs_device_d *fsdev)
 	}
 
 	fsdev->dev.parent = fsdev->cdev->dev;
-	fsdev->parent_device = fsdev->cdev->dev;
 
 	return 0;
 }
include/fs.h +0 -1
index 5811199c0161..cd5eb571e08e 100644
@@ -101,7 +101,6 @@ struct fs_device_d {
 	struct cdev *cdev;
 	bool loop;
 	char *path;
-	struct device_d *parent_device;
 	struct list_head list;
 	char *options;
 	char *linux_rootarg;
Signature · 7 lines
2.33.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
Quoted 7 lines · Ahmad Fatoum
Quoted 4 lines · Roland Hieber
Quoted 1 line · Ahmad Fatoum

The parent_device member is unused anywhere, so drop it.

s/is/isn't/?

is unused == isn't used..?

Yes. Sorry. Not enough coffee.

- Roland

Signature · 9 lines
Roland Hieber, Pengutronix e.K.          | [email protected]     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#4 lore raw
In reply to Ahmad Fatoum
Quoted 7 lines · Ahmad Fatoum

The parent_device member is unused anywhere, so drop it.

---
 fs/fs.c      | 1 -
 include/fs.h | 1 -
 2 files changed, 2 deletions(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox