Commit 2f784b92 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Damien Le Moal

ata: libata: drop ata_msg_malloc()

Unused.
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
parent 5cef96b4
...@@ -5342,7 +5342,7 @@ struct ata_port *ata_port_alloc(struct ata_host *host) ...@@ -5342,7 +5342,7 @@ struct ata_port *ata_port_alloc(struct ata_host *host)
#if defined(ATA_VERBOSE_DEBUG) #if defined(ATA_VERBOSE_DEBUG)
/* turn on all debugging levels */ /* turn on all debugging levels */
ap->msg_enable = 0x001F; ap->msg_enable = 0x000F;
#elif defined(ATA_DEBUG) #elif defined(ATA_DEBUG)
ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_WARN; ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_WARN;
#else #else
......
...@@ -76,14 +76,12 @@ enum { ...@@ -76,14 +76,12 @@ enum {
ATA_MSG_INFO = 0x0002, ATA_MSG_INFO = 0x0002,
ATA_MSG_PROBE = 0x0004, ATA_MSG_PROBE = 0x0004,
ATA_MSG_WARN = 0x0008, ATA_MSG_WARN = 0x0008,
ATA_MSG_MALLOC = 0x0010,
}; };
#define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV) #define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV)
#define ata_msg_info(p) ((p)->msg_enable & ATA_MSG_INFO) #define ata_msg_info(p) ((p)->msg_enable & ATA_MSG_INFO)
#define ata_msg_probe(p) ((p)->msg_enable & ATA_MSG_PROBE) #define ata_msg_probe(p) ((p)->msg_enable & ATA_MSG_PROBE)
#define ata_msg_warn(p) ((p)->msg_enable & ATA_MSG_WARN) #define ata_msg_warn(p) ((p)->msg_enable & ATA_MSG_WARN)
#define ata_msg_malloc(p) ((p)->msg_enable & ATA_MSG_MALLOC)
static inline u32 ata_msg_init(int dval, int default_msg_enable_bits) static inline u32 ata_msg_init(int dval, int default_msg_enable_bits)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment