#include #include #include #include Elf_Half __weak elf_core_extra_phdrs(void) { return 0; } int __weak elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) { return 1; } int __weak elf_core_write_extra_data(struct coredump_params *cprm) { return 1; } size_t __weak elf_core_extra_data_size(void) { return 0; }
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-09-23 12:02:45 +0100
committerDavid S. Miller <davem@davemloft.net>2016-09-24 08:28:23 -0400
commitfaac0ff0a544eed6b8c9375c1104d692e4979540 (patch)
tree73a65f069981b0930424fce9426bd3e5de0b1d8b
parent7f8c2865a94a73308386627cd7556c17f03efb63 (diff)
mlxsw: spectrum: remove redundant check if err is zero
There is an earlier check and return if err is non-zero, so the check to see if it is zero is redundant in every iteration of the loop and hence the check can be removed. Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/spectrum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c