From: Colin Ian King colin.k...@canonical.com
cppcheck found the following issue:
(warning) Logical conjunction always evaluates to false:
alloc_len 4 alloc_len 65535.
..the test should be instead:
if (alloc_len 4 || alloc_len 65536)
This error was introduced by recent commit
From: Colin Ian King colin.k...@canonical.com
Fix typo, Intialization - Initialization
Signed-off-by: Colin Ian King colin.k...@canonical.com
---
drivers/scsi/ufs/ufshcd-pltfrm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c
From: Colin Ian King colin.k...@canonical.com
The printk format specifier string is missing a space between
the %p format specifier and the on the defer text. Minor fix,
add the missing space.
Signed-off-by: Colin Ian King colin.k...@canonical.com
---
drivers/scsi/megaraid/megaraid_sas_base.c |
From: Colin Ian King colin.k...@canonical.com
Static analysis by smatch indicated that there was a curly
braces issue:
drivers/scsi/bfa/bfa_ioc.c:3668 bfa_cb_sfp_state_query()
warn: curly braces intended?
drivers/scsi/bfa/bfa_ioc.c:3671 bfa_cb_sfp_state_query()
warn: inconsistent
From: Colin Ian King colin.k...@canonical.com
Trivial typo fix, \b should be \n
Signed-off-by: Colin Ian King colin.k...@canonical.com
---
drivers/scsi/a100u2w.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c
index
From: Colin Ian King colin.k...@canonical.com
The error path when the call to lpfc_sli_issue_mbox returns
MBX_NOT_FINISHED results in the code freeing mp and calling
lpfc_mbuf_free twice. Fix this by jumping to the correct
part of the error clean up path.
Signed-off-by: Colin Ian King
From: Colin Ian King colin.k...@canonical.com
Static analysis by smatch indicated that there was a curly
braces issue:
drivers/scsi/megaraid/megaraid_sas_base.c:6139
megasas_mgmt_fw_ioctl() warn: curly braces intended?
Add braces in the appropriate place so that kbuf_arr[i] gets
set to NULL
From: Colin Ian King
The max outstanding commands is being printed with a 0x prefix
to suggest it is a hex value, when in fact the integer decimal %d
format specifier is being used and this is a bit confusing. Use
%x instead to match the proceeding 0x prefix.
From: Colin Ian King
The return code and error return is incorrectly indented which
may cause some confusion as it appears at first sight to be associated
with a device not ready error (with missing { } braces) rather than
a DEV_IS_GONE() failure.
The incorrect
From: Colin Ian King
Minor issue, fix spelling mistake, Intialization -> Initialization
Signed-off-by: Colin Ian King
---
drivers/scsi/ufs/ufshcd-pltfrm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Colin Ian King
trivial fix to spelling mistake in printk message
Signed-off-by: Colin Ian King
---
drivers/scsi/bnx2i/bnx2i_hwi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c
From: Colin Ian King
trivial fix to spelling mistake
Signed-off-by: Colin Ian King
---
drivers/target/target_core_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/target/target_core_file.c
From: Colin Ian King
trivial fix to spelling mistake in pr_err message
Signed-off-by: Colin Ian King
---
drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Colin Ian King
The snic version number is expected to be 4 decimals in the form like
a netmask string with each number stored in an element in array v.
However, there is an off-by-one check on the number of elements in v
allowing one to pass a 5 decimal version
From: Colin Ian King
Add a missing space in dev_err message, missed because the string
spans a few lines.
Signed-off-by: Colin Ian King
---
drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
From: Colin Ian King
The removal the #ifdef'd code on CONFIG_ARCH_HAS_SG_CHAIN in
commit 02c4de53add1b79 ("target/rd: always chain S/G list")
removed the setting of need_to_release to true, so we are now left
with need_to_release always being false and hence the
From: Colin Ian King
On an allocation failure of gd, the current exit path is via out_free_devt
which leaves sdpk still allocated and hence it gets leaked. Fix this by
correcting the order of resource free'ing with a change in the error exit
path labels.
Detected by
From: Colin Ian King
ret is uninitialized on a successful execution of clarrion_std_inquiry
and a garbage return value is being returted. Fix this by setting ret
to zero on the success exit path.
Found by CoverityScan, CID#1398889 ("Uninitialized scaler variable")
From: Colin Ian King
The check on rcode >= 0 is always true because rcode is unsigned
and can never be less than zero. Remove the redundant check.
Signed-off-by: Colin Ian King
---
drivers/scsi/aacraid/aachba.c | 2 +-
1 file changed, 1
From: Colin Ian King
aac_fib_send can return -ve error returns and hence rcode should
be signed. Currently the rcode >= 0 check is always true and -ve
errors are not being checked.
Thanks to Dan Carpenter for spotting my original broken fix to this
issue.
From: Colin Ian King
The driver_name field is not initialized and hence information
on the stack is being leaked to userspace on the copy_to_user.
Fix this.
Signed-off-by: Colin Ian King
---
drivers/scsi/aacraid/commctrl.c | 2 +-
1 file
From: Colin Ian King
trivial fix to spelling mistake, adatper_reset_req should
be adapter_reset_req. Also break up very long seq_printf statement
into multiple lines.
Signed-off-by: Colin Ian King
---
drivers/scsi/BusLogic.c | 14
From: Colin Ian King
trivial fix to spelling mistakes of "primitive" and
also re-join a literal string that spans 2 lines to
squelch a checkpatch warning.
Signed-off-by: Colin Ian King
---
drivers/message/fusion/lsi/mpi_cnfg.h | 2 +-
From: Colin Ian King
In the NVMET_FCOP_RSP case, sgel is assigned but never used and
hence is redundant and can be removed.
Detected by CoverityScan, CID#1411658 ("Unused value")
Signed-off-by: Colin Ian King
---
From: Colin Ian King
In the case where sglq is null, the current code just returns without
unlocking the spinlock sql_list_lock. Fix this by breaking out of the
while loop and the exit path will then unlock and return NULL as was
the original intention.
Detected by
From: Colin Ian King
The check for ret being zero is redundant as a few statements earlier
we break out of the while loop if ret is non-zero. Thus we can
remove the zero check and also the dead-code non-zero case too.
Detected by CoverityScan, CID#1411632 ("Logically
From: Colin Ian King
dma_buf->iocbq is being dereferenced immediately before it is
being null checked, so we have a potential null pointer dereference
bug. Fix this by only dereferencing it only once we have passed
a null check on the pointer.
Detected by
From: Colin Ian King
The sanity check for hrq should be moved to before the deference
of hrq to ensure we don't perform a null pointer deference.
Detected by CoverityScan, CID#1411650 ("Dereference before null check")
Signed-off-by: Colin Ian King
From: Colin Ian King
trivial fix to spelling mistake in pr_err message
Signed-off-by: Colin Ian King
---
drivers/scsi/qla2xxx/tcm_qla2xxx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Colin Ian King
The call to qedi_setup_int is not updating the return code rc yet rc
is being checked for an error. Fix this by assigning rc to the return
code from the call to qedi_setup_int.
Signed-off-by: Colin Ian King
---
From: Colin Ian King
Trivial fix to spelling mistakes in pr_debug message and comments
Signed-off-by: Colin Ian King
---
drivers/target/iscsi/iscsi_target.c | 2 +-
drivers/target/iscsi/iscsi_target_login.c | 4 ++--
2 files changed, 3
From: Colin Ian King
port is deferenced before it is null sanity checked, hence
we potentially have a null pointer dereference bug. Instead,
initialise trl_enabled from port->fcs->bfa after we are sure
port is not null.
Signed-off-by: Colin Ian King
From: Colin Ian King
A dev_printk message spans two lines and the literal string is missing
a white space between words. Add the white space.
Signed-off-by: Colin Ian King
---
drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
1 file changed,
From: Colin Ian King
Fix an off-by-one array size comparison that is comparing one too many
items in an array and hence will causing an out-of-bounds array read
on array fcoe_port_speed_mapping.
Signed-off-by: Colin Ian King
---
From: Colin Ian King
Trivial fix to spelling mistakes in ql_dbg messages.
Signed-off-by: Colin Ian King
---
drivers/scsi/qla2xxx/qla_os.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/scsi/qla2xxx/qla_os.c
From: Colin Ian King
Trivial fix to spelling mistake "Obselete" to "Obsolete"
in error message and also turn multi-line text into one
line.
Signed-off-by: Colin Ian King
---
drivers/target/target_core_pr.c | 3 +--
1 file changed, 1
From: Colin Ian King
Trivial fix to spelling mistake "operatio" to "operation"
in critical error message
Signed-off-by: Colin Ian King
---
drivers/scsi/dpt_i2o.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Colin Ian King
Trivial fix to spelling mistake "suspeneded" to "suspended" in
dev_warn messages
Signed-off-by: Colin Ian King
---
drivers/scsi/isci/remote_node_context.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff
From: Colin Ian King
A couple of dev_printk messages spans two lines and the literal string
is missing a white space between words. Add the white space.
Signed-off-by: Colin Ian King
---
drivers/scsi/megaraid/megaraid_sas_base.c | 6 ++
From: Colin Ian King
Trivial fix to typo "repsonse" to "response" in dev_dbg message.
Signed-off-by: Colin Ian King
---
drivers/scsi/isci/request.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Colin Ian King
Use correct index on q, use h->intr_mode instead of i. Issue
detected using static analysis with cppcheck
Fixes: bc2bb1543e62a5d0 ("scsi: hpsa: use pci_alloc_irq_vectors and automatic
irq affinity")
Signed-off-by: Colin Ian King
From: Colin Ian King
Trival fixes, minor spelling mistakes in comments and in a KERN_INFO
message.
Signed-off-by: Colin Ian King
---
drivers/scsi/mpt3sas/mpt3sas_scsih.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
From: Colin Ian King
Trivial fix to spelling mistake "oustanding" to "outstanding" in
dev_info and scmd_printk messages. Also join wrapped literal
string in the scmd_printk.
Signed-off-by: Colin Ian King
---
From: Colin Ian King
Trivial fix to spelling mistake "oustanding" to "outstanding" in
dev_info and scmd_printk messages
Signed-off-by: Colin Ian King
---
drivers/scsi/megaraid/megaraid_sas_base.c | 2 +-
From: Colin Ian King
Although on most systems va_end is a no-op, it is good practice
to use va_end on the function return path, especially since the
va_start documenation states:
"Each invocation of va_start() must be matched by a corresponding
invocation of
From: Colin Ian King
Rename the vendor_indentifer and hba_indentifer fields to correct spelling.
Signed-off-by: Colin Ian King
---
drivers/scsi/qla2xxx/qla_def.h | 4 ++--
drivers/scsi/qla2xxx/qla_gs.c | 6 +++---
2 files changed, 5
From: Colin Ian King
Reading and writing to mode[count - 1] implies the count should not
be less than 1 so add a sanity check for this.
Detected with CoverityScan, CID#1357345 ("Overflowed array index write")
Signed-off-by: Colin Ian King
From: Colin Ian King
It appears that a break in the TRANS_TX_OPEN_CNX_ERR_NO_DESTINATION
case got accidentally removed in an earlier commit, as it stands,
the ts->stat and ts->open_rej_reason are being updated twice for this
case which looks incorrect. Fix this by
From: Colin Ian King
Currently the misx and intx variables of the interrupt enable/disable
helper functions are built in no matter what the setting of the
macro PM8001_USE_MSIX. Clean this up by just building in the
necessary helper functions and calls to these
From: Colin Ian King
All error paths to label out_term2 result in sess being null, so the
check for sess being non-null and the call to put_sess is dead code
and can therefore be removed.
Detected with CoverityScan, CID#1420664 ("Logically dead code")
Signed-off-by:
From: Colin Ian King
buffer is a pointer to the static char array event_buffer and
therefore can never be null, so the check is redundant. Remove it.
Detected by CoverityScan, CID#1077556 ("Logically Dead Code")
Signed-off-by: Colin Ian King
From: Colin Ian King
Trivial fix to spelling mistake in SNIC_ERR error message text,
one cannot have "Cann't".
Signed-off-by: Colin Ian King
---
drivers/scsi/snic/snic_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
From: Colin Ian King
There are several local or function parameter pointers that are
being assigned NULL after a kfree where and these have no effect
and hence can be removed.
Fixes various cppcheck warnings:
"Assignment of function parameter has no effect outside the
From: Colin Ian King
The check for an unsigned long being less than zero is always false
so it is a redundant check and can be removed.
Detected by static analysis with by PVS-Studio
Signed-off-by: Colin Ian King
---
From: Colin Ian King
error is initially assigned to ENOENT and a few statements later
is re-assigned to the error return from the call to ahd_wait_seeprom,
hence the initial assignment is redundant and can be removed.
Signed-off-by: Colin Ian King
From: Colin Ian King
trivial fix to spelling mistake
Signed-off-by: Colin Ian King
---
drivers/message/fusion/mptbase.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/message/fusion/mptbase.c
From: Colin Ian King
On the error exit path, skb is always null, so the non-null check
and __kfree_skb call are redundant. Remove the redundant code and
just directly return with the appropriate error return code.
Detected by CoverityScan, CID#114328 ("Logically Dead
From: Colin Ian King
On the error exit path, skb is always null, so the non-null check
and __kfree_skb call are redundant. Remove the redundant code,
rename the rel_release label to err and make error paths jump to
the err exit path.
Detected by CoverityScan,
From: Colin Ian King
The vendor/device and subvendor/subdevice arguments to the function
prototype ahc_9005_subdevinfo_valid are in the wrong order and
need to be swapped to fix this. Detected with PVS-Studio studio.
Signed-off-by: Colin Ian King
From: Colin Ian King
These module parameter variables don't need global scope, make them static
Signed-off-by: Colin Ian King
---
drivers/scsi/fcoe/fcoe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
From: Colin Ian King
Trivial fix to variable name, sfp_additonal_info should be
sfp_additional_info (add in missing i).
Signed-off-by: Colin Ian King
---
drivers/scsi/qla2xxx/qla_isr.c | 8
1 file changed, 4 insertions(+), 4
From: Colin Ian King
An optional discovery status should be printed with a pr_cont
and needs a leading space to make it more readable. The final
new line should also be a pr_cont and the indentation is out
by one, so fix that too.
Signed-off-by: Colin Ian King
From: Colin Ian King
The for loop is statement is missing an indent, add it.
Signed-off-by: Colin Ian King
---
drivers/scsi/osst.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
From: Colin Ian King
Don't populate various tables on the stack but make them static const.
Makes the object code smaller by over 280 bytes:
Before:
textdata bss dec hex filename
398875080 64 45031afe7 hisi_sas_v2_hw.o
After:
From: Colin Ian King
Trivial fix to spelling mistakes/typos:
"Allodating" -> "Allocating"
"incative" -> "inactive"
Signed-off-by: Colin Ian King
---
drivers/scsi/snic/snic_isr.c | 4 ++--
drivers/scsi/snic/snic_scsi.c | 2 +-
2 files
From: Colin Ian King
Trivial fix to spelling mistakes/typos:
"requrest_irq" -> "request_irq"
"Firmwqre" -> "Firmware"
Signed-off-by: Colin Ian King
---
drivers/scsi/snic/snic_isr.c | 4 ++--
drivers/scsi/snic/snic_scsi.c | 2 +-
2 files
From: Colin Ian King
Fix the following typos/spelling mistakes:
"attribure" -> "attribute"
"suppored" -> "supported"
"Symobilic" -> "Symbolic"
"iteself" -> "itself"
"reqeust" -> "request"
"nvme_wait_on_comand" -> "nvme_wait_on_command"
"bount" -> "bound"
"captrue_mask"
From: Colin Ian King
Variables device_mutex and device_list static are local to the source,
so make them static.
Cleans up sparse warnings:
"symbol 'device_list' was not declared. Should it be static?"
"symbol 'device_mutex' was not declared. Should it be static?"
From: Colin Ian King
Trivial fix to spelling mistake in QEDF_INFO message
Signed-off-by: Colin Ian King
---
drivers/scsi/qedf/qedf_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/qedf/qedf_main.c
From: Colin Ian King
There are a couple of typos in function names and spelling of request
where the letters u and e are swapped:
scu_ssp_reqeust_construct_task_context
scu_sata_reqeust_construct_task_context
Fix the spelling of request.
Signed-off-by: Colin Ian King
From: Colin Ian King
Trivial fix to spelling mistake in QEDF_ERR message. I should have
also included this in a previous fix, but I only just spotted this one.
Signed-off-by: Colin Ian King
---
drivers/scsi/qedi/qedi_fw.c | 2 +-
1 file
From: Colin Ian King
Trivial fix to spelling mistake in QEDF_INFO message and
remove duplicated "since" (thanks to Tyrel Datwyler for spotting
the latter issue).
Signed-off-by: Colin Ian King
---
drivers/scsi/qedf/qedf_main.c | 2 +-
1 file
From: Colin Ian King
This module specific flag can be made static as it does
not need to be in global scope.
Signed-off-by: Colin Ian King
---
drivers/scsi/stex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Colin Ian King
trivial fix to spelling mistake in DEBUG2 debug message
Signed-off-by: Colin Ian King
---
drivers/scsi/qla4xxx/ql4_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Colin Ian King
The null check on pHba->channel[chan].device is redundant because
device is an array and hence can never be null. Remove the check.
Detected by CoverityScan, CID#115362 ("Array compared against 0")
Signed-off-by: Colin Ian King
From: Colin Ian King
The 2nd check to see if request_size is less than zero is redundant
because the first check takes error exit path on this condition. So,
since it is redundant, remove it.
Detected by CoverityScan, CID#146149 ("Logically Dead Code")
Signed-off-by:
From: Colin Ian King
The fields sense_data_size and sense_data are unitialized garbage from
the stack and are being copied back to userspace. Fix this leak of
stack information by ensuring they are zero'd.
Detected by CoverityScan, CID#1435473 ("Uninitialized scalar
From: Colin Ian King
Making target_parse_xcopy_cmd static fixes sparse warning:
"warning: symbol 'target_parse_xcopy_cmd' was not declared. Should
it be static?"
Fixes: 1bd05294519f76 ("target/iscsi: Fix a deadlock between the XCOPY code and
session shutdown")
From: Colin Ian King
functions lpfc_nvmet_cleanup_io_context and lpfc_nvmet_setup_io_context
can be made static as they do not need to be in global scope.
Cleans up sparse warnings:
"warning: symbol 'lpfc_nvmet_cleanup_io_context' was not declared.
Should it be
From: Colin Ian King
Trivial fix to spelling mistake in dev_info message
Signed-off-by: Colin Ian King
---
drivers/scsi/hpsa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
From: Colin Ian King
The function hptiop_iop_request_callback_itl does not need to be in
global scope, so make it static.
Cleans up sparse warning:
"symbol 'hptiop_iop_request_callback_itl' was not declared. Should it
be static?"
Signed-off-by: Colin Ian King
From: Colin Ian King
Trivial fix to spelling mistake in debugfs message
Signed-off-by: Colin Ian King
---
drivers/scsi/lpfc/lpfc_debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c
From: Colin Ian King
An earlier commit ed7fb808477b846bb2 ("scsi: qla2xxx: Remove
redundant wait when target is stopped.") removed a null check
on ha->tgt.tgt_ops and replaced it with a new check that null
checked tgt, thus making the subsequent null check on tgt
From: Colin Ian King
The guid intel_dsm_guid does not need to be in global scope, so make
it static.
Cleans up sparse warning:
"symbol 'tcmu_attrib_attrs' was not declared. Should it be static?"
Signed-off-by: Colin Ian King
---
From: Colin Ian King
The array tcmu_attrib_attrs does not need to be in global scope, so make
it static.
Cleans up sparse warning:
"symbol 'tcmu_attrib_attrs' was not declared. Should it be static?"
Signed-off-by: Colin Ian King
---
From: Colin Ian King
iscsi_lookup_endpoint can potentially return null and in 9 out of
the 10 calls to this function a null return is checked, so I think
it is pertinent to perform a null check here too and return -EINVAL
as in the other null cases.
Detected by
From: Colin Ian King
I believe there is a typo on the wq destroy of els_wq, currently
the driver is checking if els_cq is not null and I think this
should be a check on els_wq instead.
Detected by CoverityScan, CID#1411629 ("Copy-paste error")
Signed-off-by: Colin Ian
From: Colin Ian King
Don't populate const array setup_attrs on the stack, instead make it
static. Makes the object code smaller by over 120 bytes:
Before:
textdata bss dec hex filename
1588 208 01796 704
From: Colin Ian King
Don't populate const arrays on the stack, instead make them static.
Makes the object code smaller by over 530 bytes:
Before:
37010 14144 128 51282c852 drivers/scsi/scsi_transport_spi.o
After:
textdata bss dec hex
From: Colin Ian King
Don't pass a null lport to FC_LPORT_DBG as this causes a null pointer
dereference when accessing lport->host and lport->port_id. Instead
use the FC_CHECK_LOGGING macro to print the kernel message via pr_info.
Detected by CoverityScan, CID#113198
From: Colin Ian King
Functions ahc_devlimited_syncrate and ahc_linux_initialize_scsi_bus
are declared static in their prototypes but are missing in their
definitions, so add the missing static.
Cleans up sparse warnings:
symbol 'ahc_devlimited_syncrate' was not
From: Colin Ian King
The pointer eqe is always non-null inside the while loop, so the
check to see if eqe is NULL is redudant and hence can be removed.
Detected by CoverityScan CID#1248693 ("Logically Dead Code")
Signed-off-by: Colin Ian King
From: Colin Ian King
csk is always null on the error return path and so the non-null
check and call to cxgbi_sock_closed on csk is redundant and
can be removed.
Detected by: CoverityScan CID#114329 ("Logically dead code")
Signed-off-by: Colin Ian King
From: Colin Ian King
Don't populate const arrays on the stack, instead make them
static. Makes the object code smaller by over 740 bytes.
Before:
textdata bss dec hex filename
3840 208 04048 fd0 drivers/scsi/ufs/tc-dwc-g210.o
From: Colin Ian King
Remove unused variable sas_ha to clean up build warning
"unused variable ‘sas_ha’ [-Wunused-variable]"
Fixes: 042ebd293b86 ("scsi: libsas: kill useless ha_event and do some cleanup")
Signed-off-by: Colin Ian King
---
From: Colin Ian King
Don't populate the read-only array card_types on the stack but instead
make it static and constify it. Makes the object code smaller by over
110 bytes:
Before:
textdata bss dec hex filename
256255752 0 313777a91
From: Colin Ian King
Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: Colin Ian King
---
drivers/scsi/sym53c8xx_2/sym_glue.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: Colin Ian King
Use setup_timer function instead of initializing timer with the
function and data fields.
Signed-off-by: Colin Ian King
---
drivers/scsi/bfa/bfad.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git
From: Colin Ian King
Trivial fix to spelling mistake in error message text.
Signed-off-by: Colin Ian King
---
drivers/scsi/csiostor/csio_mb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
From: Colin Ian King
Trivial fix to spelling mistake in error message text.
Signed-off-by: Colin Ian King
---
drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
1 - 100 of 141 matches
Mail list logo