aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2015-01-11 09:27:01 -0500
committerTejun Heo <tj@kernel.org>2015-01-11 11:51:50 -0500
commite88af2f8de7914d311e66854eba2889710ee364e (patch)
treeb91587e31550023643be49b5d672355945bef790 /drivers/ata
parentd537fc0c0e23ce87201cb763bf040e730834f94d (diff)
ata: libata-core: Remove unused function
Remove the function ata_do_simple_cmd() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c27
-rw-r--r--drivers/ata/libata.h1
2 files changed, 0 insertions, 28 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 5c84fb5c3372..7cbcafa30550 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1752,33 +1752,6 @@ unsigned ata_exec_internal(struct ata_device *dev,
1752} 1752}
1753 1753
1754/** 1754/**
1755 * ata_do_simple_cmd - execute simple internal command
1756 * @dev: Device to which the command is sent
1757 * @cmd: Opcode to execute
1758 *
1759 * Execute a 'simple' command, that only consists of the opcode
1760 * 'cmd' itself, without filling any other registers
1761 *
1762 * LOCKING:
1763 * Kernel thread context (may sleep).
1764 *
1765 * RETURNS:
1766 * Zero on success, AC_ERR_* mask on failure
1767 */
1768unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd)
1769{
1770 struct ata_taskfile tf;
1771
1772 ata_tf_init(dev, &tf);
1773
1774 tf.command = cmd;
1775 tf.flags |= ATA_TFLAG_DEVICE;
1776 tf.protocol = ATA_PROT_NODATA;
1777
1778 return ata_exec_internal(dev, &tf, NULL, DMA_NONE, NULL, 0, 0);
1779}
1780
1781/**
1782 * ata_pio_need_iordy - check if iordy needed 1755 * ata_pio_need_iordy - check if iordy needed
1783 * @adev: ATA device 1756 * @adev: ATA device
1784 * 1757 *
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h
index 5f4e0cca56ec..82ebe263d2f1 100644
--- a/drivers/ata/libata.h
+++ b/drivers/ata/libata.h
@@ -76,7 +76,6 @@ extern unsigned ata_exec_internal_sg(struct ata_device *dev,
76 struct ata_taskfile *tf, const u8 *cdb, 76 struct ata_taskfile *tf, const u8 *cdb,
77 int dma_dir, struct scatterlist *sg, 77 int dma_dir, struct scatterlist *sg,
78 unsigned int n_elem, unsigned long timeout); 78 unsigned int n_elem, unsigned long timeout);
79extern unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd);
80extern int ata_wait_ready(struct ata_link *link, unsigned long deadline, 79extern int ata_wait_ready(struct ata_link *link, unsigned long deadline,
81 int (*check_ready)(struct ata_link *link)); 80 int (*check_ready)(struct ata_link *link));
82extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class, 81extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,