mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Fixing compilation warning when compiling the code with -Wcast-qual.
The casting from (const uint8_t *) to (uint8_t *) is not really necessary. Signed-off-by: Dotan Barak <dotanba@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -115,10 +115,10 @@ enum scst_cmd_queue_type {
|
||||
#define SCST_LOAD_SENSE(key_asc_ascq) key_asc_ascq
|
||||
|
||||
#define SCST_SENSE_VALID(sense) ((sense != NULL) && \
|
||||
((((uint8_t *)(sense))[0] & 0x70) == 0x70))
|
||||
((((const uint8_t *)(sense))[0] & 0x70) == 0x70))
|
||||
|
||||
#define SCST_NO_SENSE(sense) ((sense != NULL) && \
|
||||
(((uint8_t *)(sense))[2] == 0))
|
||||
(((const uint8_t *)(sense))[2] == 0))
|
||||
|
||||
static inline int scst_is_ua_sense(const uint8_t *sense)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user