From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zs6SP-0003qw-Ee for barebox@lists.infradead.org; Fri, 30 Oct 2015 09:58:50 +0000 Received: by lbjm5 with SMTP id m5so46779971lbj.3 for ; Fri, 30 Oct 2015 02:58:27 -0700 (PDT) From: Peter Mamonov Date: Fri, 30 Oct 2015 13:00:45 +0300 Message-Id: <1446199245-15646-1-git-send-email-pmamonov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] ata: disk_ata_drive: remove obsolete check for ID validity To: barebox@lists.infradead.org Cc: jbe@pengutronix.de, Peter Mamonov Acked-by: Juergen Borleis Signed-off-by: Peter Mamonov --- drivers/ata/disk_ata_drive.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/ata/disk_ata_drive.c b/drivers/ata/disk_ata_drive.c index ee1709e..d30d0ad 100644 --- a/drivers/ata/disk_ata_drive.c +++ b/drivers/ata/disk_ata_drive.c @@ -26,16 +26,6 @@ #include #include -static int ata_id_is_valid(const uint16_t *id) -{ - if ((id[ATA_ID_FIELD_VALID] & 1) == 0) { - pr_debug("Drive's ID seems invalid\n"); - return -EINVAL; - } - - return 0; -} - static uint64_t ata_id_n_sectors(uint16_t *id) { if (ata_id_has_lba(id)) { @@ -244,13 +234,6 @@ static int ata_port_init(struct ata_port *port) ata_fix_endianess(port->id, SECTOR_SIZE / sizeof(uint16_t)); - rc = ata_id_is_valid(port->id); - if (rc) { - dev_err(dev, "ata id invalid\n"); - free(port->id); - return rc; - } - #ifdef DEBUG ata_dump_id(port->id); #endif -- 2.1.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox