Skip to content

Commit

Permalink
mtd: Remove an unused-variable adev
Browse files Browse the repository at this point in the history
There was an unused-variable 'adev' brings a warning.

Resolve following error when '-Werror' was enabled:

drivers/mtd/mtdpart.c: In function ‘mtd_part_acpi_parse’:
drivers/mtd/mtdpart.c:584:29: error: unused variable ‘adev’ [-Werror=unused-variable]
  584 |         struct acpi_device *adev;
      |                             ^~~~
cc1: all warnings being treated as errors

Reported-by: Mingcong Bai <[email protected]>
Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
Avenger-285714 committed May 27, 2024
1 parent 3424247 commit 484b494
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/mtdpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ static int mtd_part_acpi_parse(struct mtd_info *master,
struct mtd_partitions *pparts)
{
struct mtd_part_parser *parser;
struct acpi_device *adev;
struct fwnode_handle *child;
const char *compat;
const char *fixed = "acpi-fixed-partitions";
Expand Down

0 comments on commit 484b494

Please sign in to comment.