6lowpan: mac802154: fix coding style issues
This patch fixed the coding style issues reported by checkpatch.pl following issues fixed: CHECK: Alignment should match open parenthesis WARNING: line over 80 characters CHECK: Blank lines aren't necessary before a close brace '}' WARNING: networking block comments don't use an empty /* line, use /* Comment... WARNING: Missing a blank line after declarations WARNING: networking block comments start with * on subsequent lines CHECK: braces {} should be used on all arms of this statement Signed-off-by: Varka Bhadram <varkab@cdac.in> Tested-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
このコミットが含まれているのは:
@@ -48,7 +48,8 @@ MASTER_SHOW(transmit_power, "%d +- 1 dB");
|
||||
MASTER_SHOW(cca_mode, "%d");
|
||||
|
||||
static ssize_t channels_supported_show(struct device *dev,
|
||||
struct device_attribute *attr, char *buf)
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev);
|
||||
int ret;
|
||||
@@ -57,7 +58,7 @@ static ssize_t channels_supported_show(struct device *dev,
|
||||
mutex_lock(&phy->pib_lock);
|
||||
for (i = 0; i < 32; i++) {
|
||||
ret = snprintf(buf + len, PAGE_SIZE - len,
|
||||
"%#09x\n", phy->channels_supported[i]);
|
||||
"%#09x\n", phy->channels_supported[i]);
|
||||
if (ret < 0)
|
||||
break;
|
||||
len += ret;
|
||||
@@ -80,6 +81,7 @@ ATTRIBUTE_GROUPS(pmib);
|
||||
static void wpan_phy_release(struct device *d)
|
||||
{
|
||||
struct wpan_phy *phy = container_of(d, struct wpan_phy, dev);
|
||||
|
||||
kfree(phy);
|
||||
}
|
||||
|
||||
@@ -121,11 +123,12 @@ static int wpan_phy_iter(struct device *dev, void *_data)
|
||||
{
|
||||
struct wpan_phy_iter_data *wpid = _data;
|
||||
struct wpan_phy *phy = container_of(dev, struct wpan_phy, dev);
|
||||
|
||||
return wpid->fn(phy, wpid->data);
|
||||
}
|
||||
|
||||
int wpan_phy_for_each(int (*fn)(struct wpan_phy *phy, void *data),
|
||||
void *data)
|
||||
void *data)
|
||||
{
|
||||
struct wpan_phy_iter_data wpid = {
|
||||
.fn = fn,
|
||||
@@ -197,6 +200,7 @@ EXPORT_SYMBOL(wpan_phy_free);
|
||||
static int __init wpan_phy_class_init(void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = class_register(&wpan_phy_class);
|
||||
if (rc)
|
||||
goto err;
|
||||
|
新しいイシューから参照
ユーザーをブロックする