Skip to content

Commit 9598163

Browse files
committed
Delete unused 'is_blk' from pax_nvme_device structure
1 parent 3957505 commit 9598163

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

nvme.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ int open_global_device(char *dev)
171171
pax = malloc(sizeof(struct pax_nvme_device));
172172
pax->pdfid = pdfid;
173173
pax->device.ops = &pax_ops;
174-
pax->is_blk = 0;
175174

176175
pax->dev = switchtec_open(device_str);
177176
if (!pax->dev) {

plugins/microchip/switchtec-nvme-device.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,7 @@ int pax_nvme_submit_io_passthru(int fd, struct nvme_passthru_cmd *cmd)
221221

222222
int pax_is_blk(void)
223223
{
224-
struct pax_nvme_device *pax;
225-
pax = to_pax_nvme_device(global_device);
226-
227-
return pax->is_blk;
224+
return 0;
228225
}
229226

230227
int pax_nvme_get_nsid(int fd)

plugins/microchip/switchtec-nvme-device.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
struct pax_nvme_device {
3434
struct switchtec_dev *dev;
3535
uint16_t pdfid;
36-
int is_blk;
3736
uint32_t ns_id;
3837
uint32_t channel_status;
3938
struct nvme_device device;

0 commit comments

Comments
 (0)