From: Oliver Hartkopp Date: Fri, 28 Feb 2014 15:36:20 +0000 (+0100) Subject: can: only send bitrate data via netlink when available X-Git-Tag: v3.15-rc1~113^2~206^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b30749fdfb9b72f4b1f03673cb5e45b8d4331188;p=pandora-kernel.git can: only send bitrate data via netlink when available When setting the bitrate both can_calc_bittiming() and can_fixup_bittiming() lead to the bitrate variable to be set, when a proper bit timing is available. Only then the bitrate configuration is stored for the device, so checking for priv->bittiming.bitrate is always sufficient. Signed-off-by: Oliver Hartkopp Acked-by: Stephane Grosjean Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed