Skip to content

Commit 8a878dc

Browse files
palosaarimchehab
authored andcommitted
[media] m88ds3103: fix some style issues reported by checkpatch.pl
* remove Free Software Foundation postal address * add one pair of parenthesis * use sizeof(*foo), not sizeof(struct foo) Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
1 parent 4fc5787 commit 8a878dc

3 files changed

Lines changed: 3 additions & 14 deletions

File tree

‎drivers/media/dvb-frontends/m88ds3103.c‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License along
17-
* with this program; if not, write to the Free Software Foundation, Inc.,
18-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1915
*/
2016

2117
#include "m88ds3103_priv.h"
@@ -927,8 +923,9 @@ static int m88ds3103_read_snr(struct dvb_frontend *fe, u16 *snr)
927923
if (signal > noise) {
928924
tmp = signal / noise;
929925
*snr = 100ul * intlog10(tmp) / (1 << 24);
930-
} else
926+
} else {
931927
*snr = 0;
928+
}
932929
break;
933930
default:
934931
dev_dbg(&priv->i2c->dev, "%s: invalid delivery_system\n",
@@ -1190,7 +1187,7 @@ struct dvb_frontend *m88ds3103_attach(const struct m88ds3103_config *cfg,
11901187
u8 chip_id, u8tmp;
11911188

11921189
/* allocate memory for the internal priv */
1193-
priv = kzalloc(sizeof(struct m88ds3103_priv), GFP_KERNEL);
1190+
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
11941191
if (!priv) {
11951192
ret = -ENOMEM;
11961193
dev_err(&i2c->dev, "%s: kzalloc() failed\n", KBUILD_MODNAME);

‎drivers/media/dvb-frontends/m88ds3103.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License along
17-
* with this program; if not, write to the Free Software Foundation, Inc.,
18-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1915
*/
2016

2117
#ifndef M88DS3103_H

‎drivers/media/dvb-frontends/m88ds3103_priv.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License along
17-
* with this program; if not, write to the Free Software Foundation, Inc.,
18-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1915
*/
2016

2117
#ifndef M88DS3103_PRIV_H

0 commit comments

Comments
 (0)