Skip to content

Commit

Permalink
No need for casts anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
baruch committed Aug 25, 2017
1 parent f795f0d commit 6984540
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arch-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,13 @@ int disk_dev_identify(disk_dev_t *dev, char *vendor, char *model, char *fw_rev,
if (ret < 0)
return -1;

ata_get_ata_identify_model((char*)buf, vendor);
ata_get_ata_identify_model(buf, vendor);
strtrim(vendor);
strcpy(model, vendor + strlen(vendor) + 1);
strtrim(model);
ata_get_ata_identify_fw_rev((char*)buf, fw_rev);
ata_get_ata_identify_fw_rev(buf, fw_rev);
strtrim(fw_rev);
ata_get_ata_identify_serial_number((char*)buf, serial);
ata_get_ata_identify_serial_number(buf, serial);
strtrim(serial);

memcpy(ata_buf, buf, buf_read);
Expand Down

0 comments on commit 6984540

Please sign in to comment.