On Friday 23 September 2005 21:40, Abhay Salunke wrote:
> Please ignore earlier patches as there was error submitting it! :-(
> patch below is good...
>
Ok, I'm being pedantic. So shoot me.
There are a few tiny bits CodingStyle wise that could be better. No big deal,
I'm nitpicking in the extreme here...
[snip]
> - pr_debug("fill_last_packet: entry \n");
pr_debug("fill_last_packet: entry\n");
[snip]
> - pr_debug("fill_last_packet: exit \n");
pr_debug("fill_last_packet: exit\n");
[snip]
> pr_debug("create_packet: exit \n");
pr_debug("create_packet: exit\n");
[snip]
> + temp = (u8 *) data;
temp = (u8 *)data;
[snip]
> +do_packet_read(char *data, struct list_head *ptemp_list,
> int length, int bytes_read, int *list_read_count)
Hmm, I believe the prefered style for functions is to indent parameters that
won't fit on the first line by two tab stops, like this :
do_packet_read(char *data, struct list_head *ptemp_list,
int length, int bytes_read, int *list_read_count)
There are several occourences of this.
[snip]
> +packet_read_list(char *data, size_t * pread_length)
packet_read_list(char *data, size_t *pread_length)
[snip]
> * img_update_free: Frees the buffer allocated for storing BIOS image
> * Always called with lock held and returned with lock held
* Always called with lock held and returned with lock held.
[snip]
> + .attr = {.name = "data",.owner = THIS_MODULE,.mode = 0444},
.attr = {.name = "data", .owner = THIS_MODULE, .mode = 0444},
[snip]
> + .attr = {.name = "image_type",.owner = THIS_MODULE,.mode = 0644},
.attr = {.name = "image_type", .owner = THIS_MODULE, .mode = 0644},
[snip]
> + .attr = {.name = "packet_size",.owner = THIS_MODULE,.mode = 0644},
.attr = {.name = "packet_size", .owner = THIS_MODULE, .mode = 0644},
--
Jesper Juhl <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|