[PATCH 27/34] sfdisk: assigned value is never read [clang-analyzer]

Sami Kerola
2013-07-07T19:56:19Z

fdisks/sfdisk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fdisks/sfdisk.c b/fdisks/sfdisk.c
index 6b757a7..152e5f5 100644
--- a/fdisks/sfdisk.c
+++ b/fdisks/sfdisk.c
@@ -1505,7 +1505,7 @@ msdos_partition(char *dev, int fd, unsigned long start, struct disk_desc *z) {
struct partition pt;
struct sector *s;
struct part_desc *partitions = &(z->partitions[0]);
- int pno = z->partno;
+ int pno;
int bsd_later = 1;
unsigned short sig, magic;
#ifdef __linux__
--
1.8.3.2