linux_dsm_epyc7002/drivers/infiniband/hw
Roland Dreier 6d7d080e9f IB/mthca: Use uninitialized_var() for f0
Commit 9db48926 ("drivers/infiniband/hw/mthca/mthca_qp: kill uninit'd
var warning") added "= 0" to the declarations of f0 to shut up gcc
warnings.  However, there's no point in making the code bigger by
initializing f0 to a random value just to get rid of a warning;
setting f0 to 0 is no safer than just using uninitialized_var(), which
documents the situation better and gives smaller code too.  For example, 
on x86_64:

add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-16 (-16)
function                                     old     new   delta
mthca_tavor_post_send                       1352    1344      -8
mthca_arbel_post_send                       1489    1481      -8

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-07-17 19:30:51 -07:00
..
amso1100 IB: Use menuconfig for InfiniBand menu 2007-07-09 20:12:26 -07:00
cxgb3 RDMA/cxgb3: Remove cm_id reference on listen failures 2007-07-17 18:37:38 -07:00
ehca IB/ehca: Fix warnings issued by checkpatch.pl 2007-07-17 18:37:40 -07:00
ipath IB/ipath: Remove ipath_get_user_pages_nocopy() 2007-07-17 18:37:43 -07:00
mlx4 IB/mlx4: Take sizeof the correct pointer in call to memset() 2007-07-17 18:37:38 -07:00
mthca IB/mthca: Use uninitialized_var() for f0 2007-07-17 19:30:51 -07:00